Show
Ignore:
Timestamp:
05/18/06 20:18:00 (18 years ago)
Author:
jerome
Message:

Added a small fix for incorrect username used when printing as root.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2886 r2889  
    255255        self.JobId = sys.argv[1].strip() 
    256256        # use CUPS' user when printing test pages from CUPS' web interface 
    257         self.UserName = sys.argv[2].strip() or pwd.getpwuid(os.geteuid())[0] 
     257        self.UserName = sys.argv[2].strip() or self.originalUserName or pwd.getpwuid(os.geteuid())[0] 
    258258        self.Title = sys.argv[3].strip() 
    259259        self.Copies = int(sys.argv[4].strip())