Cambiato il metodo per ottenere il nome utente

Leonardo Robol [2009-10-15 09:17]
Cambiato il metodo per ottenere il nome utente
Filename
DrPrintGui/Input.py
diff --git a/DrPrintGui/Input.py b/DrPrintGui/Input.py
index d7a6ac3..b008115 100644
--- a/DrPrintGui/Input.py
+++ b/DrPrintGui/Input.py
@@ -35,7 +35,7 @@ class UsernameField(gtk.Entry):

         gtk.Entry.__init__(self)

-        self.set_text( os.getlogin() )
+        self.set_text( os.getenv("USER") )


 class PasswordField(gtk.Entry):
ViewGit