Changing launch command

Autor Odpowiedzi
Nevon Sunday 23 May 2010 at 14:09


I was sure this would be written down somewhere in the documentation or in the forums, but I can't seem to find it. I have Jedi Academy installed, and it used to work. However, after upgrading my graphics card to a newer Nvidia model, it crashes. I've tracked down the issue and the solution, which is to run the game as such:
__GL_ExtensionStringVersion=17700 playonlinux --run "Jedi Knight Academy"
That works, but it requires me to either create a separate launcher or run it from the terminal. Isn't there any way I can edit the launch command in PlayOnLinux?

Edytowane przez Nevon

Dr Phil Sunday 23 May 2010 at 22:17
Dr Phil

I think the scripts that is being launched by PlayOnLinux is located in ~/.PlayOnLinux/configurations/installed. I think you'll understand how to add your setting. :)
argymeg Monday 17 December 2012 at 13:37

Hello! I am resurrecting this old topic because, apparently, the method for this has changed, but I can't find a new solution anywhere. What I want to do is execute the wine launch command through a script (as in "$ scriptname POL_wine Safari.exe". "~/.PlayOnLinux/configurations/installed" doesn't exist anymore, so I assumed I had to edit the relevant file in "~/.PlayOnLinux/shortcuts/". However, just adding "scriptname" to the final command doesn't work. What is the current way to do this?
petch Monday 17 December 2012 at 16:01

The equivalent of above command would be;
POL_Shortcut_InsertBeforeWine "Jedi Knight Academy" 'export __GL_ExtensionStringVersion=17700' PlayOnLinux console.
argymeg Monday 17 December 2012 at 20:28

Thanks for the answer, but what I'm trying to do is run them together, not first the script and then the app, so that wine is run through the script.
petch Monday 17 December 2012 at 20:39

Why do you "resurrect" threads for a different problem then?
argymeg Monday 17 December 2012 at 21:29

Unless I am much mistaken, the original poster does not make the distinction between the two, nor is it implied he actually runs the commands seperately.
petch Monday 17 December 2012 at 22:22

In the original post there's only one command being run,
variable=value command
is a special syntactic construct of the shell.

Ok, I think I finally understand what you want; Since PlayOnLinux 4.1.2 there's some provision for this:
- you can define an environment variable $BEFORE_WINE
- you can also define a PlayOnLinux setting also called BEFORE_WINE
The difference being the scope: the PlayOnLinux setting will affect all shortcuts

So if, let's suppose, you want to run all programs with pasuspender, you could write
POL_Config_Write BEFORE_WINE 'pasuspender --'
(as discussed in

Edytowane przez petch