~isantop/system76-driver/pkexec

« back to all changes in this revision

Viewing changes to System76Driver.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:
187
187
        
188
188
        #Creates an archive of common support files and logs
189
189
        
190
 
        username = getpass.getuser()
191
 
        
192
190
        today = time.strftime('%Y%m%d_h%Hm%Ms%S')
193
191
        modelname = model.determine_model()
194
192
        version = ubuntuversion.release()
211
209
        os.system('cp /var/log/syslog %s/' % TARGETDIR)
212
210
        os.system('cp /var/log/Xorg.0.log %s/' % TARGETDIR)
213
211
        os.system('tar -zcvf logs.tar %s/' % TARGETDIR)
 
212
        x = open("/tmp/sys76-username")
 
213
        username = x.read()
 
214
        x.close()
214
215
        os.system('cp logs.tar /home/%s/' % username)
215
216
        
216
217
        archiveCreatedDialog = archiveCreated(datadir);