Changeset 4469 for lliurex-mirror


Ignore:
Timestamp:
Apr 26, 2017, 5:51:26 PM (2 years ago)
Author:
hectorgh
Message:

minor changes when calculating home directory. Have to assume this won't have the propper HOME variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-mirror/trunk/fuentes/lliurex-mirror-gui/usr/share/lliurex-mirror/lliurex-mirror.py

    r4462 r4469  
    454454                self.window.connect("destroy",self.quit)
    455455               
    456                                
    457                
    458                
    459456               
    460457                #self.set_previous_values()
     
    773770                                self.local_folder_label.set_text(os.environ["HOME"])
    774771                '''             
    775                
    776                
    777                 self.destination_fcb.set_filename(os.environ["HOME"])
    778                 self.destination_label.set_text(os.environ["HOME"])
     772                               
     773                path="/home/%s"%os.environ["USER"]
     774                self.destination_fcb.set_filename(path)
     775                self.destination_label.set_text(path)
    779776               
    780777               
Note: See TracChangeset for help on using the changeset viewer.