PlayOnLinux

{{short description|Graphical front-end for the Wine software compatibility layer}}

{{Multiple issues|

{{Notability|Product|date=August 2023}}

{{Primary sources|date=August 2023}}

}}

{{Infobox software

| title =

| name = PlayOnLinux

| logo =

| logo size =

| logo alt =

| logo caption =

| screenshot = PlayOnLinux-Screenshot.png

| screenshot size =

| screenshot alt =

| caption = Play on Linux interface

| collapsible =

| author =

| developer = Quentin Pâris{{cite web |title=PlayOnLinux - elementary OS |url=https://www.elementaryos-fr.org/documentation/applications/wine/wine-playonlinux/ |website=elementary OS |accessdate=9 July 2020 |language=fr}} and Aymeric Petit

| released = {{Start date and age|2007}}

| discontinued =

| latest release version = 4.4

| latest release date = {{Start date and age|2020|05|17|df=yes}}

| latest preview version = 5.0 Alpha 2{{cite web

| url = https://www.playonlinux.com/en/comments-1368.html

| title = Release of PlayOnLinux 5.0 alpha 2}}

| latest preview date =

| programming language = ; PlayOnLinux 3/4{{Cite web|url=https://github.com/PlayOnLinux/POL-POM-4|title = PlayOnLinux and PlayOnMac 4 (POL-POM-4)|website = GitHub|date = 21 November 2021}}{{Cite web|url=https://github.com/PlayOnLinux/PlayOnLinux_3|title = PlayOnLinux/PlayOnLinux_3|website = GitHub|date = 2 June 2021}}

:* Python (wxPython)

:* Bash

; PlayOnLinux 5

:* Java

:* JavaScript

| operating system = Linux, FreeBSD,{{cite web

| url = https://www.freshports.org/emulators/playonbsd/

| website = FreshPorts

| title = PlayOnBSD}} macOS{{cite web

| title = PlayOnMac

| url = http://wiki.playonlinux.com/index.php/Installing_PlayOnMac}}

| platform =

| size =

| language =

| language count =

| language footnote =

| genre = Compatibility layer

| license = GPL/LGPL

| alexa =

| website =

| standard =

| AsOf =

}}

PlayOnLinux is a graphical frontend for the Wine software compatibility layer which allows Linux users to install Windows-based video games, Microsoft Office (2000 to 2016), Microsoft Internet Explorer, as well as many other applications such as Apple iTunes and Safari.{{cite web

| url = https://www.playonlinux.com/

| title = Play on Linux

| publisher = Play on Linux

| accessdate = 18 January 2020}}{{citation |author=Michael Mielewczik |pages=62–64 |periodical=Linux Life |title=Gereifter Jahrgang. Windows-Programme unter Linux mit Wine 1.0. |volume=5/2008}}

While initially developed for Linux-based systems, it is also used on macOS and FreeBSD under the names PlayOnMac and PlayOnBSD, respectively. It can also be used on other operating systems supported by Wine.

Versions

Version 4.0 (2011{{cite web | url=https://www.playonlinux.com/en/commentaires-991.html | title=PlayOnLinux 4.0 is released ! - PlayOnLinux - Run your Windows applications on Linux easily! }}) is able to run on Mac and Linux. It used two separate source trees and was therefore called "POL" on Linux systems and "POM" on Mac.

=Version 5.0 Phoenicis=

Version 5.0, currently under development, uses the same codebase for Mac and Linux. It has been named POL-POM-5, later POL-POM, and currently is being developed under the name Phoenicis. POL wiki [https://wiki.playonlinux.com/index.php/Building_PlayOnLinux_5]

Internals

PlayOnLinux is developed using a combination of Bash, Python and wxPython.

The system provides wrapper shell scripts that specify the configuration of Wine needed in order to install and run a particular application.

It uses an online database of scripts to apply to different applications that need special configuration; if the game is not in the database, a manual installation can be performed. Programs can be installed and each one is put in a different container (WINEPREFIX) to prevent interference of one with another. This provides isolation in much the same way that CrossOver's bottles work.

Thus, applications may use different versions and configurations of Wine as appropriate. The installation of these is managed by the PlayOnLinux software itself without the requirement to install Wine separately.

The program also allows the user to create virtual partitions, in which specific programs can be installed with different Wine versions and programs, similar to a multi-boot computer.

=Scripting language=

PlayOnLinux includes advanced functions in Bash allowing the community to make scripts easily by controlling the installation process.{{cite web|url = http://www.playonlinux.com/en/dev-documentation-1.html|title = Documentation - PlayOnLinux|date = |accessdate = |website = |publisher = |last = |first = |archive-url = https://web.archive.org/web/20160313040750/https://www.playonlinux.com/en/dev-documentation-1.html|archive-date = 2016-03-13|url-status = dead}} Each supported program has its own script written in this language.

For example, the simple following script will popup a setup window with the message Hello World:

  1. !/bin/bash

[ "$PLAYONLINUX" = "" ] && exit 0

source "$PLAYONLINUX/lib/sources"

POL_SetupWindow_Init

POL_SetupWindow_message "Hello World!" "My first message"

POL_SetupWindow_Close

exit

See also

{{Portal|Free and open-source software}}

References

{{Reflist}}