Skip to content
Snippets Groups Projects
Commit ead5f523 authored by Simon McVittie's avatar Simon McVittie
Browse files

runtime: Look for ldconfig in /sbin, /usr/sbin


If we are on an OS where /sbin is not normally in unprivileged users'
PATHs (for example Debian), we won't find ldconfig in PATH and will
need to try harder.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent d3530450
No related branches found
No related tags found
No related merge requests found
......@@ -1701,9 +1701,17 @@ pv_runtime_use_host_graphics_stack (PvRuntime *self,
ldconfig = g_find_program_in_path ("ldconfig");
if (ldconfig == NULL
&& g_file_test ("/sbin/ldconfig", G_FILE_TEST_IS_EXECUTABLE))
ldconfig = g_strdup ("/sbin/ldconfig");
if (ldconfig == NULL
&& g_file_test ("/usr/sbin/ldconfig", G_FILE_TEST_IS_EXECUTABLE))
ldconfig = g_strdup ("/usr/sbin/ldconfig");
if (ldconfig == NULL)
{
g_warning ("Cannot find ldconfig in PATH");
g_warning ("Cannot find ldconfig in PATH, /sbin or /usr/sbin");
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment