mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-09-06 22:01:27 +00:00
shim: Fix broken shim_export_ld_dir, export VDPAU_DRIVER_PATH
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
+3
-1
@@ -177,7 +177,7 @@ static bool shim_init_vulkan(const char *glob_path)
|
||||
/**
|
||||
* Attempt to push a path into the variable name if it actually exists
|
||||
*/
|
||||
static void shim_export_ld_dir(const char *dir, const char *var_name)
|
||||
static void shim_export_ld_dir(const char *var_name, const char *dir)
|
||||
{
|
||||
if (!lsi_file_exists(dir)) {
|
||||
return;
|
||||
@@ -229,6 +229,8 @@ static void shim_export_extra(const char *prefix)
|
||||
shim_export_ld_dir("LD_LIBRARY_PATH", ld_library_dirs[i]);
|
||||
}
|
||||
|
||||
shim_export_ld_dir("VDPAU_DRIVER_PATH", "/var/lib/snapd/lib/gl/vdpau");
|
||||
|
||||
/* Path */
|
||||
shim_export_merge_vars("PATH", prefix, "/usr/bin");
|
||||
shim_export_merge_vars("PATH", prefix, "/bin");
|
||||
|
||||
Reference in New Issue
Block a user