![Back to referring page]()
Notice: This page is a part of my personal profile page, and may be moved or deleted without prior notice.
To create a handy PlayOnLinux desktop launcher, that can be used to execute MS Windows/Woe binaries inside the POL Wine environment (simply by dragging-and-dropping them to the launcher), without the need to setup the applications using the GUI first, create the following two files within their respective folders, with the contents listed below:
Pre-requisites
- At least one Wine version must be installed through PlayOnLinux wine versions manager (the latest stable version is recommended)
- File ~/.PlayOnLinux/wineprefix/default/playonlinux.cfg must exist, and contain the
VERSION variable, linking to one of the already installed POL_Wine versions
~/.PlayOnLinux/shortcuts/default
#!/bin/sh
source $PLAYONLINUX/lib/sources
export WINEPREFIX=/home/user/.PlayOnLinux/wineprefix/default
cd "${@%/*}"
POL_Wine "$@"~/Desktop/playonlinux.desktop
[Desktop Entry]
Type=Application
Name=PlayOnLinux
Exec=playonlinux --run default $@
Icon=playonlinux
To be able to configure the default virtual drive within the PlayOnLinux configuration window, you also need to create a symlink to it with
cd ~/.PlayOnLinux/wineprefix;ln -s default configure
This trick was tested, and proved to be working on Trisquel 4.1 32-bit. Further improvements will follow later.
Versionen
11/07/2013 - 17:35
