On Thursday, approximately 10AM UTC, we'll be performing our MediaWiki 1.34 deployment. Please expect some downtime, we apologise in advance for any inconvenience!

POL launcher

From Trisquel Enhancement Project
Jump to navigation Jump to search

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
  1. At least one Wine version must be installed through PlayOnLinux wine versions manager (the latest stable version is recommended)
  2. 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

ln -s default ~/.PlayOnLinux/wineprefix/configure