mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05:00
media-session: use the SESSION_PREFIX for any fallback config dir
Regression introduced in 3560f3ba2d
MEDIA_SESSION_CONFIG_PATH expects the actual directory while
PIPEWIRE_CONFIG_PATH and the built-in fallback both expect the files to
reside within the SESSION_PREFIX subdirectory.
Fixes #1725
This commit is contained in:
parent
56f01a293c
commit
dfb63d55dd
1 changed files with 3 additions and 2 deletions
|
|
@ -2369,9 +2369,10 @@ static int collect_modules(struct impl *impl, const char *str)
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
dir = getenv("MEDIA_SESSION_CONFIG_DIR");
|
dir = getenv("MEDIA_SESSION_CONFIG_DIR");
|
||||||
if (dir == NULL && (dir = getenv("PIPEWIRE_CONFIG_DIR")) == NULL) {
|
if (dir == NULL) {
|
||||||
dir = PIPEWIRE_CONFDATADIR;
|
|
||||||
prefix = SESSION_PREFIX;
|
prefix = SESSION_PREFIX;
|
||||||
|
if ((dir = getenv("PIPEWIRE_CONFIG_DIR")) == NULL)
|
||||||
|
dir = PIPEWIRE_CONFDATADIR;
|
||||||
}
|
}
|
||||||
if (dir == NULL)
|
if (dir == NULL)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue