~usb-creator-hackers/usb-creator/trunk

« back to all changes in this revision

Viewing changes to bin/usb-creator-kde

  • Committer: Evan Dandrea
  • Date: 2009-09-16 15:07:07 UTC
  • mto: This revision was merged to the branch mainline in revision 201.
  • Revision ID: evan.dandrea@canonical.com-20090916150707-mf58dvmmgty0w5k5
Initial commit of PolicyKit support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    if args.isSet("persistent"):
67
67
        persistent = True
68
68
    
69
 
    if os.getuid() != 0:
70
 
        args = ['kdesudo', 'usb-creator-kde']
71
 
        args.extend(sys.argv)
72
 
        os.execvp(args[0], args)
73
 
 
74
69
    try:
75
70
        backend = DeviceKitBackend()
76
71
        frontend = KdeFrontend(backend, img, persistent)