mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-08-19 05:47:05 +00:00
shim: Read config AFTER setting up the environment
Under snapd we forcibly change XDG_CONFIG_HOME away from the "norm", and read before the variable is set. Thus, the config written by lsi-settings is correct, but under snapd the wrong file would be read all the time. Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
+5
-3
@@ -281,14 +281,16 @@ bool shim_bootstrap()
|
||||
operation_prefix = getenv("SNAP");
|
||||
#endif
|
||||
|
||||
/* We might have additional variables we need to export and we
|
||||
* might also end up changing XDG_CONFIG_HOME - ensure we actually
|
||||
* read our settings from the right place. */
|
||||
shim_export_extra(operation_prefix);
|
||||
|
||||
/* Ensure we now have some kind of config */
|
||||
if (!lsi_config_load(&lsi_config)) {
|
||||
lsi_config_load_defaults(&lsi_config);
|
||||
}
|
||||
|
||||
/* We might have additional variables we need to export */
|
||||
shim_export_extra(operation_prefix);
|
||||
|
||||
/* Force STEAM_RUNTIME into the environment */
|
||||
if (lsi_config.use_native_runtime) {
|
||||
/* Explicitly disable the runtime */
|
||||
|
||||
Reference in New Issue
Block a user