needs a .desktop file
Bug #267788 reported by
Colin Watson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
usb-creator (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In order to be useful to its target audience, usb-creator could do with a .desktop file. That will probably need to invoke it with gksu or similar (at least until/unless usb-creator is converted to PolicyKit).
Changed in usb-creator: | |
status: | New → Fix Committed |
To post a comment you must log in.
77 def become_root(): "/usr/bin/ gksu", "gksu", os.path. abspath( sys.argv[ 0])) "/usr/bin/ kdesu", "-u", "root", "-c", abspath( sys.argv[ 0]))
78 """Become root and run this script as root. Tested on Ubuntu 8.04 Live
79 and Kubuntu 7.10 Live
80 """
81 if os.getuid() != 0:
82 try:
83 os.execl(
84 except:
85 pass
86 try:
87 os.execl(
88 os.path.
89 except:
90 pass
91 if os.getuid() != 0:
92 error("Could not become root")
93 exit(1)
Source: http:// bazaar. launchpad. net/~probono/ liveusb/ main/annotate/ 11?file_ id=liveusb. py-200805211406 41-6qy8a3a46kl4 k01c-53