Anyway, I have a "emergency exit everything" button mapped on a controller which kills a bunch of programs that may be running. It kills off Wine by running...
Code: Select all
su arcade -c "WINEPREFIX=/mnt/store/Wine wineserver -k" &
su arcade -c "WINEPREFIX=/mnt/store/Wine64 wineserver -k" &
Anyway, this has worked fine for the most part, but doesn't seem to work with CEmu, which causes Wine to zombie the process when you run the above. So whilst everything is running normally, ps looks like this:
Code: Select all
arcade 31375 69.2 40.6 10294376 3199332 ? Rl 23:34 0:11 C:\CEmu\Cemu.exe -f -g Z:\mnt\store\Emulation\Games\Nintendo - Wii U\Mario Kart 8 [AMKE01]\code\Turbo.rpx
arcade 31384 0.0 0.0 1979232 7112 ? Ssl 23:34 0:00 C:\windows\system32\services.exe
arcade 31387 0.0 0.1 2137780 8356 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31397 0.0 0.0 1845864 6756 ? Sl 23:34 0:00 C:\windows\system32\plugplay.exe
arcade 31403 0.0 0.1 2139692 10016 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31414 0.2 0.2 1942492 22576 ? Ssl 23:34 0:00 C:\windows\system32\explorer.exe /desktop
Code: Select all
arcade 31375 96.3 0.0 0 0 ? Zl 23:34 0:28 [Cemu.exe] <defunct>
arcade 31384 0.0 0.0 1979232 7112 ? Ssl 23:34 0:00 C:\windows\system32\services.exe
arcade 31387 0.0 0.1 2137780 8356 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31397 0.0 0.0 1845864 6756 ? Sl 23:34 0:00 C:\windows\system32\plugplay.exe
arcade 31403 0.0 0.1 2139692 10016 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31414 0.1 0.2 1942492 22576 ? Ssl 23:34 0:00 C:\windows\system32\explorer.exe /desktop
Code: Select all
WINEPREFIX=/mnt/store/Wine64 wineboot --end-session --shutdown --force --kill
Code: Select all
arcade 31375 6.6 0.0 0 0 ? Zl 23:34 0:29 [Cemu.exe] <defunct>
arcade 31384 0.0 0.0 1979232 7112 ? Ssl 23:34 0:00 C:\windows\system32\services.exe
arcade 31387 0.0 0.1 2137780 8356 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31397 0.0 0.0 1845864 6756 ? Sl 23:34 0:00 C:\windows\system32\plugplay.exe
arcade 31403 0.0 0.1 2139692 10016 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31414 0.0 0.2 1942492 22576 ? Ssl 23:34 0:00 C:\windows\system32\explorer.exe /desktop
Code: Select all
killall Cemu.exe -9
arcade 31384 0.0 0.0 1979232 7112 ? Ssl 23:34 0:00 C:\windows\system32\services.exe
arcade 31387 0.0 0.1 2137780 8356 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31397 0.0 0.0 1845864 6756 ? Sl 23:34 0:00 C:\windows\system32\plugplay.exe
arcade 31403 0.0 0.1 2139692 10016 ? Sl 23:34 0:00 C:\windows\system32\winedevice.exe
arcade 31414 0.0 0.2 1942492 22576 ? Ssl 23:34 0:00 C:\windows\system32\explorer.exe /desktop
Code: Select all
[12:04:14] arcade@arcade ~ $ ps aux | grep wine
arcade 6615 0.0 0.0 11096 2412 pts/0 S+ 00:04 0:00 grep wine
arcade 31387 0.0 0.1 2137780 8356 ? Sl Jun23 0:00 C:\windows\system32\winedevice.exe
arcade 31403 0.0 0.1 2139692 10016 ? Sl Jun23 0:00 C:\windows\system32\winedevice.exe