Currently I am downloading the ImageMagick AppImage provided on the releases page to /usr/local/bin
. (It needs to be accessible to multiple users.) I would like to provide a custom policy.xml
config file but am not sure where to put it.
The docs state:
Under Linux and Linux, ImageMagick searches for each of the configuration files listed above by looking in the locations given below, in order, and loads them if found:
$MAGICK_CONFIGURE_PATH
$PREFIX/etc/ImageMagick-7
$PREFIX/share/ImageMagick-7
$XDG_CACHE_HOME/ImageMagick
$HOME/.config/ImageMagick
<client path>/etc/ImageMagick
The environmental variable $PREFIX is the default install path (e.g. /usr/local). The client path is the execution path of your ImageMagick client (e.g. /usr/local) .
I was hoping to avoid having to use $MAGICK_CONFIGURE_PATH
but am currently.
I did try putting the the policy.xml
file under /usr/local/etc/ImageMagick-7
and /usr/local/share/ImageMagick-7
, but $ magick -list policy
showed the config still goes undetected. Here is the output:
$ magick -list policy
Path: /tmp/.mount_magickrmRmxG/usr/etc/ImageMagick-7/policy.xml
Policy: Undefined
rights: None
Path: [built-in]
Policy: Undefined
rights: None
Is there a directory where global config can be placed under the given setup that will be automatically detected?