usbinstall.py: use pkexec to launch usbinstall script and run as user not root from desktop menu
This commit is contained in:
parent
b5cf37d9f6
commit
8720bc231a
@ -8,6 +8,3 @@ Icon=mamba
|
|||||||
Terminal=0
|
Terminal=0
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=X-openmamba;
|
Categories=X-openmamba;
|
||||||
X-KDE-RootOnly=true
|
|
||||||
X-KDE-SubstituteUID=true
|
|
||||||
X-KDE-Username=root
|
|
||||||
|
@ -368,8 +368,7 @@ def step4():
|
|||||||
# Show the progressBar
|
# Show the progressBar
|
||||||
window.p_install.show()
|
window.p_install.show()
|
||||||
dbus_start()
|
dbus_start()
|
||||||
# NON FUNZIONA...
|
process_sh = Popen(["pkexec", "/usr/sbin/usbinstall", path_dev, path_cpio, path_iso, "-y"], env={"DBUS_USBINSTALL": "1"})
|
||||||
process_sh = Popen(["sudo", "/usr/bin/usbinstall.sh", path_dev, path_cpio, path_iso, "-y"], env={"DBUS_USBINSTALL": "1"})
|
|
||||||
|
|
||||||
|
|
||||||
# Show a list of object (step 1 and 2)
|
# Show a list of object (step 1 and 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user