how to read config file from current dir (relative to a binary using the lib)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

How can I make fontconfig look for the config files in the local directory?

Here is the background:

I'm compiling a static ffmpeg binary with libass and fontconfig.
Now ffmpeg (or actually the library which was statically linked to ffmpeg) is
looking for the configuration files in a directory which does not exist on
other systems.
I need to have the library looking for the config files relative to the static
binary.

e.g.:

binary:
	/path/to/binary/my_static_binary
config files:
	/path/to/binary/conf.d
	/path/to/binary/fonts.conf
or
	/path/to/binary/cfg/conf.d
	/path/to/binary/cfg/fonts.conf

Any ideas how I can do this?

Would --sysconfdir=. do this? Is this valid?

Cheers,
  Helmut
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux