• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 135 136 137 138 139 ... 1196 Next »

Dolphin nogui has no window class
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin nogui has no window class
04-14-2020, 11:13 AM
#1
KatIsntGood Offline
Kat
***
Posts: 81
Threads: 8
Joined: Aug 2018
I use i3 and I like to keep certain programs in certain workspaces. For normal Dolphin everything works fine, but dolphin-emu-nogui has no window class so I can't control it at all without adding one myself. Is this normal? I only play a few of my games so I was hoping to make .desktop files for them and have them open right in the workspace I want. I don't see why it shouldn't not have a window class and I can't figure out a proper way to hack in the behavior I want
Find
Reply
04-15-2020, 04:57 AM
#2
KatIsntGood Offline
Kat
***
Posts: 81
Threads: 8
Joined: Aug 2018
I managed to find a hacky solution if anyone is in a similar situation as me. Should be helpful for other DEs/WMs as well:

Code:
#!/bin/sh


FILE=$2 # filename
SYS=$1 # system

# run dolphin in background
dolphin-emu-nogui -e "/run/media/HDD/ROMs/$SYS/$FILE" &
# wait two seconds
sleep 2s
# set the window class to "dolphin-emu"
xdotool search --name "HLE" set_window --classname "dolphin-emu" set_window --class "dolphin-emu"
# make sure said window is active
xdotool search --class "dolphin-emu" windowactivate
# move window to the Game workspace via i3
i3-msg move container to workspace Game
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode