conf: ignore the prefix if the config file name is an absolute path

Fixes:
$ export PIPEWIRE_CONFIG_PREFIX=/usr/share/pipewire
$ pipewire -c /etc/pipewire/bar.conf
[W][11925.530591][          conf.c:  253 conf_load()] config 0x560039ac6510: error loading config '/usr/share/pipewire//etc/pipewire/pipewire.conf': No such file or directory
[W][11925.530721][       context.c:  178 try_load_conf()] context 0x560039ac6190: can't load config /usr/share/pipewire//etc/pipewire/pipewire.conf: No such file or directory
This commit is contained in:
Peter Hutterer 2021-07-06 11:04:44 +10:00 committed by Wim Taymans
parent b1ac776ff0
commit fb2d35895e
4 changed files with 102 additions and 8 deletions

View file

@ -63,6 +63,7 @@ test('test lib',
test('test context',
executable('test-context',
'test-context.c',
'test-config.c',
include_directories: pwtest_inc,
link_with: pwtest_lib)
)