- Timestamp:
- 05/09/05 13:43:34 (20 years ago)
- Location:
- tea4cups/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/NEWS
r627 r630 22 22 Tea4CUPS News : 23 23 24 * 2.12alpha : 25 26 - When printing test pages from CUPS' web interface, the empty username 27 is now overwritten with the username CUPS is running as. 28 24 29 * 2.11 : 25 30 -
tea4cups/trunk/tea4cups
r629 r630 25 25 import sys 26 26 import os 27 import pwd 27 28 import popen2 28 29 import errno … … 37 38 from struct import unpack 38 39 39 version = "2.1 1_unofficial"40 version = "2.12alpha_unofficial" 40 41 41 42 class TeeError(Exception): … … 406 407 407 408 self.JobId = sys.argv[1].strip() 408 self.UserName = sys.argv[2].strip() or "root"409 self.UserName = sys.argv[2].strip() or pwd.getpwuid(os.geteuid())[0] # use CUPS' user when printing test pages from CUPS' web interface 409 410 self.Title = sys.argv[3].strip() 410 411 self.Copies = int(sys.argv[4].strip())