Skip to content

Instantly share code, notes, and snippets.

@ivoarch
Created November 25, 2016 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivoarch/774aaa964c8f3ee56913a5091aedf7d8 to your computer and use it in GitHub Desktop.
Save ivoarch/774aaa964c8f3ee56913a5091aedf7d8 to your computer and use it in GitHub Desktop.
Add support for beesu - (su) graphical interface for Rhel/Fedora .
--- live-usb-install-orig.py 2016-05-15 13:18:34.000000000 +0200
+++ live-usb-install.py 2016-11-25 22:03:37.951168584 +0100
@@ -2997,6 +2997,8 @@
os.system('gksu -D %s ./live-usb-install.py' % '/usr/share/applications/live-usb-install.desktop' if os.path.exists('/usr/share/applications/live-usb-install.desktop') else _('live-usb-install'))
elif os.system('which kdesudo')==0:
os.system('kdesudo ./live-usb-install.py')
+ elif os.system('which beesu')==0:
+ os.system('beesu ./live-usb-install.py')
elif os.system('which sudo')==0:
password = getText('',_('LiveUSB Install requires root privileges. Please enter your password below.'),_('Password'), password = True)
while gtk.events_pending():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment