From 8720bc231ade5894bf234b8cbcef9f5e2c72c6ac Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 19 Feb 2012 16:51:26 +0100 Subject: [PATCH] usbinstall.py: use pkexec to launch usbinstall script and run as user not root from desktop menu --- src/usbinstall.desktop | 3 --- src/usbinstall.py | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/usbinstall.desktop b/src/usbinstall.desktop index f3187dd..7919e00 100644 --- a/src/usbinstall.desktop +++ b/src/usbinstall.desktop @@ -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 diff --git a/src/usbinstall.py b/src/usbinstall.py index 99e5d8e..4b74c66 100755 --- a/src/usbinstall.py +++ b/src/usbinstall.py @@ -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)