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

Look for -check-vulkan in default helpers path, not in PATH


-check-vulkan is provided by steam-runtime-tools itself, in
/usr/libexec/steam-runtime-tools-0, and not by some other package in
/usr/bin; so if the caller has not overridden the helpers path at the
SrtSystemInfo level, we must look for it in the default helpers path.

This bug was hidden by the fact that the unit tests do override the
helpers path, in order to find our mock versions of wflinfo and
vulkaninfo.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent eee99b5f
No related branches found
No related tags found
1 merge request!76Fix check-vulkan when installed to final location
......@@ -567,15 +567,10 @@ _argv_for_check_vulkan (const char *helpers_path,
g_ptr_array_add (argv, g_strdup ("10"));
}
if (helpers_path != NULL)
{
g_ptr_array_add (argv, g_strdup_printf ("%s/%s-check-vulkan", helpers_path, multiarch_tuple));
}
else
{
g_ptr_array_add (argv, g_strdup_printf ("%s-check-vulkan", multiarch_tuple));
}
if (helpers_path == NULL)
helpers_path = _srt_get_helpers_path ();
g_ptr_array_add (argv, g_strdup_printf ("%s/%s-check-vulkan", helpers_path, multiarch_tuple));
g_ptr_array_add (argv, NULL);
return argv;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment