[poppler] How to set custom 'share' directory
Jeroen Ooms
jeroen at berkeley.edu
Wed Nov 1 14:34:36 UTC 2017
On Wed, Nov 1, 2017 at 3:20 PM, Jason Crain <jason at inspiresomeone.us> wrote:
> On Mac and Linux the path is hardcoded at compilation time. It's
> generally in /usr/share/poppler on Linux. Not sure what the standard is
> on Mac. On Windows it looks in \share\poppler relative to the
> installation directory.
OK that is unfortunate. Would it be possible to introduce an option to
set this path dynamically at runtime; e.g via an environment variable
or via an api call?
In our case we statically link libpoppler with the R bindings on
MacOS/Windows. This works very well for users, but there isn't a fixed
installation directory; it depends on where the user installs the R
package. So it would be really nice if there is a way to point
libpoppler to the correct path when the R package gets loaded, rather
than hardcoding this at build-time.
More information about the poppler
mailing list