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

Merge branch 'wip/smcv/ldconfig-sbin' into 'master'

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

See merge request steam/pressure-vessel!43
parents 6a55d53c ead5f523
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