usbinstall.py: use pkexec to launch usbinstall script and run as user not root from desktop menu

This commit is contained in:
Silvan Calarco 2012-02-19 16:51:26 +01:00
parent b5cf37d9f6
commit 8720bc231a
2 changed files with 1 additions and 5 deletions

View File

@ -8,6 +8,3 @@ Icon=mamba
Terminal=0
Type=Application
Categories=X-openmamba;
X-KDE-RootOnly=true
X-KDE-SubstituteUID=true
X-KDE-Username=root

View File

@ -368,8 +368,7 @@ def step4():
# Show the progressBar
window.p_install.show()
dbus_start()
# NON FUNZIONA...
process_sh = Popen(["sudo", "/usr/bin/usbinstall.sh", path_dev, path_cpio, path_iso, "-y"], env={"DBUS_USBINSTALL": "1"})
process_sh = Popen(["pkexec", "/usr/sbin/usbinstall", path_dev, path_cpio, path_iso, "-y"], env={"DBUS_USBINSTALL": "1"})
# Show a list of object (step 1 and 2)