[Printing-architecture] How the set the PATH for filters?

Brian Candler b.candler at pobox.com
Wed Nov 7 14:09:49 UTC 2018

I am trying to run foomatic-filters under macOS 10.14.1.

One problem is that the executables spawned by foomatic are installed by 
homebrew under /usr/local/bin, but this directory does not appear in the 
$PATH when the filters are run.

D [07/Nov/2018:13:00:36 +0000] [Job 350] /bin/bash: pdftops: command not 
D [07/Nov/2018:13:00:36 +0000] [Job 350] pdf-to-ps exited with status 127

I can the PATH set for filters does not include /usr/local/bin, in 
standard debug logs:

D [07/Nov/2018:13:00:36 +0000] [Job 350] 

My question is, how can I change this PATH? The cups documentation 
<https://opensource.apple.com/source/cups/cups-33/doc/spm.html> says:

"Every filter receives a fixed set of environment variables that can be 
used by the filter

  * |PATH|- The execution path exported to the filter"

- but not how to change it.

Workaround: symlink the binaries into /usr/libexec/cups/filter/; also 
needed to set "Sandboxing Relaxed" in /etc/cups/cups-filter.conf.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/printing-architecture/attachments/20181107/08a32812/attachment.html>

More information about the Printing-architecture mailing list