~isantop/system76-driver/pkexec

« back to all changes in this revision

Viewing changes to System76Drivergtk3.py

  • Committer: Carl Richell
  • Date: 2012-06-07 16:11:42 UTC
  • mfrom: (48.3.3 system76-driver)
  • Revision ID: carl@system76.com-20120607161142-xh3qu41xuoy5fw6r
Update local code

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        setNotify("gtk-dialog-error", "The driver is currently processing another operation.\nPlease wait for it to finish")
59
59
    else:
60
60
        os.system('touch ' + lockFile)
61
 
        username = getpass.getuser()
 
61
#        username = getpass.getuser()
62
62
        
63
63
        today = time.strftime('%Y%m%d_h%Hm%Ms%S')
64
64
        modelname = model.determine_model()
82
82
        os.system('cp /var/log/syslog %s/' % TARGETDIR)
83
83
        os.system('cp /var/log/Xorg.0.log %s/' % TARGETDIR)
84
84
        os.system('tar -zcvf logs.tar %s/' % TARGETDIR)
 
85
        x = open("/tmp/sys76-username")
 
86
        username = x.read()
 
87
        x.close()
85
88
        os.system('cp logs.tar /home/%s/' % username)
86
 
#        os.system('sudo chmod 777 /home/%s/logs.tar' % username)
87
89
        os.system('rm ' + lockFile)
88
90
        
89
91
        setNotify("gtk-ok", "A log file (logs.tar) was created in your home folder. Please send it to\nsupport via www.system76.com/support")
261
263
    notSupport().run()
262
264
 
263
265
os.system('rm ' + lockFile + ' 2>/dev/null') #remove any stray lock files and...
264
 
os.system("rm " + descriptionFile + " 2>/dev/null") #description files.
 
266
os.system('rm " + descriptionFile + " 2>/dev/null') #description files.
 
267
os.system(os.system('rm /tmp/sys76-username 2>/dev/null'))
265
268
sys.exit(0)
 
269