Comment 24 for bug 172264

Till,

There seems to be a discrepancy between my PATH and the PATH that cups sees?

(from env run at the shell)
PATH=/opt/ghostscript/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

$ which gs
/opt/ghostscript/bin/gs

and yet the path in the following error log is
"PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"

D [08/Dec/2007:23:00:37 +0000] Print-Job ipp://localhost/printers/scx4200
D [08/Dec/2007:23:00:37 +0000] print_job: auto-typing file...
D [08/Dec/2007:23:00:37 +0000] add_job: requesting-user-name="damon"
D [08/Dec/2007:23:00:37 +0000] Adding default job-sheets values "none,none"...
I [08/Dec/2007:23:00:37 +0000] [Job 231] Adding start banner page "none".
D [08/Dec/2007:23:00:37 +0000] Discarding unused job-created event...
I [08/Dec/2007:23:00:37 +0000] [Job 231] Adding job file of type application/postscript.
I [08/Dec/2007:23:00:37 +0000] [Job 231] Adding end banner page "none".
I [08/Dec/2007:23:00:37 +0000] [Job 231] Queued on "scx4200" by "damon".
D [08/Dec/2007:23:00:37 +0000] [Job 231] hold_until = 0
D [08/Dec/2007:23:00:37 +0000] Discarding unused printer-state-changed event...
D [08/Dec/2007:23:00:37 +0000] [Job 231] job-sheets=none,none
D [08/Dec/2007:23:00:37 +0000] [Job 231] banner_page = 0
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[0]="scx4200"
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[1]="231"
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[2]="damon"
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[3]=""
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[4]="1"
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[5]="Resolution=600dpi MediaType=Off JCLEconomode=PRINTERDEFAULT PageRegion=Letter InputSlot=Auto PageSize=Letter Altitude=Low orientation-requested=3 sides=two-sided-long-edge job-uuid=urn:uuid:e3ced785-d974-3614-67ec-681f1c365d46"
D [08/Dec/2007:23:00:37 +0000] [Job 231] argv[6]="/var/spool/cups/d00231-001"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[9]="SERVER_ADMIN=root@arclight-linux"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[10]="SOFTWARE=CUPS/1.3.2"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[12]="TZ=User defined"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[13]="USER=root"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[16]="IPP_PORT=631"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[17]="CHARSET=utf-8"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[18]="LANG=en_US"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[19]="PPD=/etc/cups/ppd/scx4200.ppd"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[20]="RIP_MAX_CACHE=8m"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[21]="CONTENT_TYPE=application/postscript"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[22]="DEVICE_URI=mfp:/dev/mfp4"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[23]="PRINTER=scx4200"
D [08/Dec/2007:23:00:37 +0000] [Job 231] envp[24]="FINAL_CONTENT_TYPE=printer/scx4200"
I [08/Dec/2007:23:00:37 +0000] [Job 231] Started filter /usr/lib/cups/filter/pstops (PID 8159)
I [08/Dec/2007:23:00:37 +0000] [Job 231] Started filter /usr/lib/cups/filter/rastertosamsungspl (PID 8160)
I [08/Dec/2007:23:00:37 +0000] [Job 231] Started backend /usr/lib/cups/backend/mfp (PID 8162)
D [08/Dec/2007:23:00:37 +0000] Discarding unused job-state event...
D [08/Dec/2007:23:00:37 +0000] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [08/Dec/2007:23:00:37 +0000] PID 8159 (/usr/lib/cups/filter/pstops) exited with no errors.
D [08/Dec/2007:23:00:37 +0000] [Job 231] Page = 612x792; 12,12 to 600,780
D [08/Dec/2007:23:00:37 +0000] [Job 231] slow_collate=0, slow_duplex=0, slow_order=0
D [08/Dec/2007:23:00:37 +0000] [Job 231] Before copy_comments - %!PS-Adobe-3.0
D [08/Dec/2007:23:00:37 +0000] [Job 231] %!PS-Adobe-3.0
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%Creator: Gnome Print Version 2.18.2
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%CreationDate: D:20071208180037
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%LanguageLevel: 2
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%DocumentMedia: Regular 612 792 0 () ()
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%Orientation: Portrait
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%BoundingBox: 0 0 612 792
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%Pages: 1
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%PageOrder: Ascend
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%Title:
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%DocumentSuppliedResources: procset pnome-print-procs-2.18.2
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%+ font (GnomeUni-DejaVuSans) cvn
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%Requirements: numcopies(1)
D [08/Dec/2007:23:00:37 +0000] [Job 231] %%EndComments
D [08/Dec/2007:23:00:37 +0000] [Job 231] Before copy_prolog - %%BeginDefaults
D [08/Dec/2007:23:00:37 +0000] [Job 231] Before copy_setup - %%BeginSetup
D [08/Dec/2007:23:00:37 +0000] [Job 231] Before page loop - %%Page: 1 1
D [08/Dec/2007:23:00:37 +0000] [Job 231] Copying page 1...
D [08/Dec/2007:23:00:37 +0000] [Job 231] pagew = 587.0, pagel = 767.0
D [08/Dec/2007:23:00:37 +0000] [Job 231] bboxw = 612, bboxl = 792
D [08/Dec/2007:23:00:37 +0000] [Job 231] PageLeft = 12.5, PageRight = 599.5
D [08/Dec/2007:23:00:37 +0000] [Job 231] PageTop = 779.5, PageBottom = 12.5
D [08/Dec/2007:23:00:37 +0000] [Job 231] PageWidth = 612.0, PageLength = 792.0
D [08/Dec/2007:23:00:37 +0000] [Job 231] Wrote 1 pages...
D [08/Dec/2007:23:00:37 +0000] [Job 231] /var/tmp/rastertosamsungspl.log file open error
D [08/Dec/2007:23:00:37 +0000] [Job 231] ExecProgramV: 'gs' '-dNOPAUSE' '-dBATCH' '-dSAFER' '-q' '-sOutputFile=-' '-sDEVICE=pbmraw' '-r600x600' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dFIXEDMEDIA' '-'
D [08/Dec/2007:23:00:37 +0000] [Job 231] execv(gs): No such file or directory
E [08/Dec/2007:23:00:37 +0000] [Job 231] Unable to open input
D [08/Dec/2007:23:00:37 +0000] [Job 231] Child PID for gs is 8161
E [08/Dec/2007:23:00:37 +0000] [Job 231] Failed to load the PPM image
D [08/Dec/2007:23:00:37 +0000] Discarding unused printer-state-changed event...