From 3b10e7ae40d1e3d6e11d97379ff06dd0ab0466a7 Mon Sep 17 00:00:00 2001 From: Miepee Date: Sat, 14 Jan 2023 21:26:17 +0100 Subject: [PATCH] Clarify comment --- AM2RLauncher/AM2RLauncherLib/Profile.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AM2RLauncher/AM2RLauncherLib/Profile.cs b/AM2RLauncher/AM2RLauncherLib/Profile.cs index 971ff78..1c3dcf8 100644 --- a/AM2RLauncher/AM2RLauncherLib/Profile.cs +++ b/AM2RLauncher/AM2RLauncherLib/Profile.cs @@ -772,6 +772,8 @@ public static class Profile FileName = $"{gameDirectory}/AM2R.AppImage" #endif }; + // This may look unnecessary, but it's actually not. In case that the current process has a custom HOME variable, + // we want to pass it through to the child process as well as normally it doesn't do that. startInfo.EnvironmentVariables["HOME"] = CrossPlatformOperations.Home; log.Info($"CWD of Profile is {startInfo.WorkingDirectory}");