正在加载
请稍等

菜单

红楼飞雪 梦

15526773247

文章

Home linux开发学习 To Run PlayOnLinux As ROOT User
Home linux开发学习 To Run PlayOnLinux As ROOT User

To Run PlayOnLinux As ROOT User

linux开发学习 by

you will need to navigate to your PlayOnLinux directory which should be something like /usr/share/playonlinux/

in /usr/share/playonlinux/lib is where you will find the first file you need to edit called sources and comment them out by putting a # in front of these lines

if [ "$(id -u)" = "0" ]
then
echo "PlayOnLinux is not supposed to be run as root. Sorry"
exit
fi

then edit /usr/share/playonlinux/python/mainwindow.­py and comment these lines

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["APP­LICATION_TITLE"]),_("Error&quo­t;))
os._exit(0)

To uninstall PlayOnLinux you need to run below given commands. :

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-wine/ppa

 

02 2016-03

 

我要 分享

 

 

本文 作者

 

相关 文章