Changeset 54 for trunk/gui/printer/cupswiz/cupswiz.VRX
- Timestamp:
- Dec 16, 2016, 2:54:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/printer/cupswiz/cupswiz.VRX
r53 r54 383 383 ARG create_os2 384 384 385 cups_etc = globals.!cupsdir'\etc' 386 IF \VRIsDir( cups_etc'\cups\ppd') THEN 387 cups_etc = globals.!cupsdrv'\etc' 388 IF \VRIsDir( cups_etc'\cups\ppd') THEN 389 cups_etc = VALUE('ETC',,'OS2ENVIRONMENT') 390 IF \VRIsDir( cups_etc'\cups\ppd') THEN 391 cups_etc = '\etc' 392 385 393 /* Create the CUPS printer */ 386 394 IF globals.!remotecups == '' THEN DO … … 417 425 cups_ppd = globals.!prt_ppd 418 426 IF cups_ppd == '' THEN 419 cups_ppd = STREAM( globals.!cupsdir'\etc\cups\ppd\'globals.!prt_name'.ppd', 'C', 'QUERY EXISTS')427 cups_ppd = STREAM( cups_etc'\cups\ppd\'globals.!prt_name'.ppd', 'C', 'QUERY EXISTS') 420 428 IF cups_ppd == '' THEN DO 421 CALL LINEOUT globals.!log1, 'CUPS PPD for this printer (' globals.!cupsdir'\etc\cups\ppd\'globals.!prt_name'.ppd) does not exist.'429 CALL LINEOUT globals.!log1, 'CUPS PPD for this printer ('cups_etc'\cups\ppd\'globals.!prt_name'.ppd) does not exist.' 422 430 CALL LINEOUT globals.!log1, 'Cannot import PPD. Prompting user for preferred printer model.' 423 431 CALL PromptForPMName … … 1287 1295 */ 1288 1296 PARSE VALUE VRGetIni('eCups', 'CUPS', 'USER') WITH cupsdrv '00'x 1297 IF cupsdrv == '' THEN DO 1298 cupsd_exe = SysSearchPath('PATH', 'cupsd.exe') 1299 IF cupsd_exe <> '' THEN 1300 cupsdrv = FILESPEC('DRIVE', cupsd_exe ) 1301 END 1289 1302 IF cupsdrv == '' THEN 1290 1303 cupsdrv = VRParseFilePath( me, 'D') || ':' 1291 1304 ELSE 1292 1305 cupsdrv = STRIP( cupsdrv, 'T', '\') 1293 globals.!cupsdir = cupsdrv'\cups' 1306 1307 IF VRIsDir( cupsdrv'\cups') THEN 1308 globals.!cupsdir = cupsdrv'\cups' 1309 ELSE 1310 globals.!cupsdir = cupsdrv'\usr' 1311 globals.!cupsroot = cupsdrv 1294 1312 1295 1313 /* Get system paths. … … 1928 1946 CALL NLSSetText 'SW_ABOUT', 'Caption', 10 /* 10: Product Information */ 1929 1947 CALL NLSSetText 'DT_ABOUT1', 'Caption', 11 /* 11: eCups Printer Install Utility */ 1930 CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '1.1 '/* 12: Version %1 */1948 CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '1.11' /* 12: Version %1 */ 1931 1949 CALL NLSSetText 'DT_ABOUT3', 'Caption', 13, '2010-2016' /* 13: (C) %1 Alex Taylor */ 1932 1950 CALL NLSSetText 'PB_ABOUT', 'Caption', 2 /* 10: Product Information */
Note:
See TracChangeset
for help on using the changeset viewer.