Return-Path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=to:from :subject:message-id:date:mime-version:content-type; s=sasl; bh=+ bRwrX7ueKoUdg7kBgpaSEGRZQ4=; b=m96gMN3B1AfFtPx+ARZVYzedyxyVxKZ96 4xW9CF7eT749tJgtwAzkNzmh7hL4e/usZyXXR6L2t6s0Adm14cX3k9MOCbf160Uh ht8FgCMgsi7XWKwyI4vvaPgYsc/uhCO0BOekbNby7CSP5r/+cYgF40YkyraAXomt Bg3pIoMbVo= From: Brian Candler Message-ID: <95e1b8ce-0281-ec50-ce4a-6eaf0fa0e57d@pobox.com> Date: Wed, 7 Nov 2018 14:09:49 +0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------363C1298F15D9F9A1C0ED26B" Content-Language: en-US Subject: [Printing-architecture] How the set the PATH for filters? List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: printing-architecture@lists.linux-foundation.org This is a multi-part message in MIME format. --------------363C1298F15D9F9A1C0ED26B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 found 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] envp[10]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/b in" My question is, how can I change this PATH? The cups documentation 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. Thanks, Brian. --------------363C1298F15D9F9A1C0ED26B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

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 found
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] envp[10]=3D"PATH=3D/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin= :/usr/b
in"

My question is, how can I change this PATH? The cups documentation says:

"Every filter receives a fixed set of environment variables that can be used by the filter
...
  • PATH=C2=A0- The execution path export= ed 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.

Thanks,

Brian.

--------------363C1298F15D9F9A1C0ED26B--