Selasa, 17 Juni 2014

Menjalankan playonlinux dalam mode root



Buka terminal dan masukan perintah ini:
leafpad /usr/share/playonlinux/lib/sources


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


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


Save

Masukkan perintah ini di terminal:
leafpad /usr/share/playonlinux/python/mainwindow.py

Cari dan edit tulisan ini:
#### Root uid check
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(0)


Menjadi:
#### Root uid check
#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(0)


Save

Good luck :)  

Tidak ada komentar:

Posting Komentar