Ignore:
Timestamp:
Dec 16, 2016, 2:54:23 PM (9 years ago)
Author:
Alex Taylor
Message:

More minor modifications for compatibility with RPM-installed CUPS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/printer/cupswiz/cupswiz.VRX

    r53 r54  
    383383    ARG create_os2
    384384
     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
    385393    /* Create the CUPS printer */
    386394    IF globals.!remotecups == '' THEN DO
     
    417425                cups_ppd = globals.!prt_ppd
    418426                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')
    420428                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.'
    422430                    CALL LINEOUT globals.!log1, 'Cannot import PPD.  Prompting user for preferred printer model.'
    423431                    CALL PromptForPMName
     
    12871295     */
    12881296    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
    12891302    IF cupsdrv == '' THEN
    12901303        cupsdrv = VRParseFilePath( me, 'D') || ':'
    12911304    ELSE
    12921305        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
    12941312
    12951313    /* Get system paths.
     
    19281946    CALL NLSSetText 'SW_ABOUT',  'Caption', 10                                          /* 10: Product Information */
    19291947    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 */
    19311949    CALL NLSSetText 'DT_ABOUT3', 'Caption', 13, '2010-2016'                             /* 13: (C) %1 Alex Taylor */
    19321950    CALL NLSSetText 'PB_ABOUT',  'Caption', 2                                           /* 10: Product Information */
Note: See TracChangeset for help on using the changeset viewer.