View Full Version : Help wanted: killall wine key shortcut...

August 17th, 2007, 04:47 PM
Hi everyone.

I'm seeking an answer for the problem that I (or rather my cousin) have, he isn't a user who likes to fiddle with the terminal so I got this idea.

Sometimes when wine hangs it would been have a lot easier if there was a key shortcut to kill it (wineserver I assume). I wonder if creating a new script based upon /etc/event.d/ctrl-alt-delete would be a good start but I tried and changed it into ctrl-alt-home (both the name and the content of the file) but so far no luck.

Do I have to restart some process or something? Help would be much appreciated. Thank you :)

August 18th, 2007, 05:37 PM
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"

The above, taken from ubuntuguide.org, binds Ctrl+Alt+Del to the system monitor.
So, with some minor changes, you can do this

gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Space"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "killall wineserver"

I cant say it will work for sure. It's just a random thought

August 18th, 2007, 05:53 PM
I would suggest changing one thing. Instead of "killall wineserver" use "wineserver -k", that way Wine handles the winserver stop on its own, rather than letting the system kill it (helpful for troubleshooting).