认识
官网:http://www.playonlinux.com/
文档:http://wiki.playonlinux.com
仓库:https://github.com/PlayOnLinux/POL-POM-4
简而言之,PlayOnLinux,其为 Wine 的前端工具,其以简单的方式安装 Windows 中的软件。
软件截图如下:
组成
wxPython
# ./playonlinux-bash Linux Looking for python... 3.12.10 - skipped Looking for python2.7... Looking for python2.6... Looking for python2... Please install python before trying to run this program
命令程序 and 配置文件
# apt-file list playonlinux # Ubuntu 25.04 2025-10-24
/usr/bin/playonlinux,其为 Wine 的前端程序。提供了一种简单的方式来安装和使用 Windows 中的软件。
/usr/bin/playonlinux-pkg,管理 playonlinux 包的工具。
/usr/share/applications/PlayOnLinux.desktop
/usr/share/doc/playonlinux/*
/usr/share/locale/*
/usr/share/man/man1/*
/usr/share/pixmaps/*
/usr/share/playonlinux/*
/usr/share/python3/runtime.d/playonlinux.rtupdate
构建
从 Linux 发行版的源中安装
apt-get install playonlinux
直接下载软件包
从官网下载 Play On Linux
- PlayOnLinux 是 Python 写的,所以必须先安装 Python。
- 下载 Play On Linux: https://www.playonlinux.com/en/download.html
- 运行:/path/to/package/playonlinux
从 GitHub 下载 Play On Linux
PlayOnLinux 是 Python 写的,所以必须先安装 Python。
项目地址: https://github.com/PlayOnLinux/POL-POM-4
运行程序:/path/to/package/playonlinux
常见错误列表
#1 PlayOnLinux is not supposed to be run as root. Sorry
PlayOnLinux 是不允许以 ROOT 运行的,在程序中执行用户检查。不过,还好 Play On Linux 是 Python 开发的,所以可以修改脚本文件,移除 ROOT 检查。一共有两处需要修改:
1)修改 /usr/share/playonlinux/python/mainwindow.py 文件,注释以下行:
if(os.popen("id -u").read() == "0\n" or os.popen("id -u").read() == "0"):
wx.MessageBox(_("{0} is not supposed to be run as root. Sorry").format(os.environ["APPLICATION_TITLE"]),_("Error"))
os._exit(1)
2)修改 /usr/share/playonlinux/lib/sources 文件,注释以下行:
if [ "$(id -u)" = "0" ] then echo "PlayOnLinux is not supposed to be run as root. Sorry" exit fi
参考