Changeset 180

Show
Ignore:
Timestamp:
09/15/07 08:56:27 (15 years ago)
Author:
jerome
Message:

Thanks to Rodolfo Cossalter, fixed a problem under Windows 98/Me :
if not user was logged-in an error occured when trying to retrieve
the current username.

Location:
pykoticon/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykoticon/trunk/bin/pykoticon

    r179 r180  
    268268    def getCurrentUserName(self) : 
    269269        """Retrieves the current user's name.""" 
    270         if isWindows : 
    271             return win32api.GetUserName() 
    272         else :     
    273             try : 
     270        try : 
     271            if isWindows : 
     272                return win32api.GetUserName() 
     273            else :     
    274274                return pwd.getpwuid(os.geteuid())[0] 
    275             except : 
    276                 return "** Unknown **" 
     275        except : 
     276            return "** Unknown **" 
    277277             
    278278    def OnIconify(self, event) : 
  • pykoticon/trunk/CREDITS

    r176 r180  
    2121 
    2222    - Georger Araujo : Fixed a charset encoding problem under MS-Windows. 
     23    - Rodolfo Cossalter : Fixed a problem under MS-Windows 98/Me. 
    2324