mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Find modules and config files relative to the installed libraries.
Do not use replace %PULSE_ROOT% from the environment.
This commit is contained in:
parent
8852b80df8
commit
eb833da570
5 changed files with 67 additions and 86 deletions
|
|
@ -159,7 +159,21 @@ pa_daemon_conf* pa_daemon_conf_new(void) {
|
|||
} else
|
||||
|
||||
#endif
|
||||
#ifdef OS_IS_WIN32
|
||||
{
|
||||
char *t;
|
||||
char *majorminor = pa_xstrdup(VERSION);
|
||||
char *toplevel = pa_win32_get_toplevel(NULL);
|
||||
|
||||
if ((t = strchr(majorminor, '-')))
|
||||
*t = '\0';
|
||||
|
||||
c->dl_search_path = pa_sprintf_malloc("%s" PA_PATH_SEP "lib" PA_PATH_SEP "pulse-%s" PA_PATH_SEP "modules", toplevel, majorminor);
|
||||
pa_xfree(majorminor);
|
||||
}
|
||||
#else
|
||||
c->dl_search_path = pa_xstrdup(PA_DLSEARCHPATH);
|
||||
#endif
|
||||
|
||||
return c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue