Forums

Emulate desktop only for certain shortcuts in the same wineprefix

Auteur Réponses
kthxbye Mardi 5 Juin 2012 à 18:46
kthxbyeAnonymous

Greetings,
long time PoL user here but I never got to post on the forums nor wrote any script yet.
Lately I have been having some problems with a few games (Torchlight 2 Beta, Limbo and others) that will crash on startup unless I set wine to emulate a desktop environment for the wineprefix they use. That's all well and good except that I'd like to run Steam without desktop emulation (to have it show in my system tray).
Is there any way to tell PoL to run a certain shortcut in an emulated desktop when other shortcuts in the same wineprefix will run without? If yes, how?

Thanks in advance!
- kthxbye
petch Mardi 5 Juin 2012 à 19:21
petch
Développeur

Hi,
Well, sort of, obviously if both programs are launched at the same time, you'll get the setup of the first one launched.
But with that restriction, you can add statements in the shortcuts to enable or disable virtual desktop; Open the PlayOnLinux console, then type
> POL_Shortcut_InsertBeforeWine 'Name of the shortcut' 'Set_Desktop Off'
or
> POL_Shortcut_InsertBeforeWine 'Name of the shortcut' 'Set_Desktop On 1024 768'
(or whatever resolution you want)
kthxbye Mardi 5 Juin 2012 à 20:15
kthxbyeAnonymous

Thank you, that's exactly what I was looking for. :) Having to close Steam before starting other applications is a minor bother at best compared to having to open the wine configuration and switching on and off the desktop emulation each time.
Not having to do even that would be perfect but I guess it's more of a wine limitation rather than a PoL one.

Thanks!