Vous êtes ici > Bugs > PlayOnLinux > Feature > Ticket #1060
Ajouté par Rainmaker le 2012-07-06 17:14:20 - Commenter ou mettre à jour ce ticket
Do you need root access to start a new xserver?
No, you can do this as any user.
I guess it could be a good plugin
I may want to write this (if I can find some spare time, it can't be that hard), but I can't seem to find any documentation on writing a plugin. I can find plenty of info on writing instalation scripts, but plugins seem to be a different breed all together.
Plugins are in fact .tar.bz2 files renamed to .pol
Extract one and you'll see quickly how it is made.
You have sevearal scripts :
menu is the script run when you select the plugin in the plugin menu. The name of the program is pased as an argument
lib can contain bash functions which will be added to PlayOnLinux environement
If you have any question, feel free to ask
I've not properly looked into scripting on Linux yet so I wrote a tutorial on how to do this using the GUI. It's quite long though, a simple script like you propose would be much better.
The thread is here: http://www.playonlinux.com/en/topic-9707.html
As for the script you've pasted in your ticket, there are some changes you could make. At the moment you appear to be launching the app directly through WINE. This would bypass any custom config that has been set up in PlayOnLinux (such as a different WINE version to that of the system). It's much better to use a command like this:
#!/bin/bash
xinit /usr/bin/ck-launch-session /usr/share/playonlinux/playonlinux --run "yourgamehere" %F $* -- :3 & nvidia-settings –load-config-only