diff --git a/AM2RLauncher/AM2RLauncherLib/Profile.cs b/AM2RLauncher/AM2RLauncherLib/Profile.cs index ec828cf..b60615d 100644 --- a/AM2RLauncher/AM2RLauncherLib/Profile.cs +++ b/AM2RLauncher/AM2RLauncherLib/Profile.cs @@ -554,7 +554,10 @@ public static class Profile if (OS.IsLinux) { #if NOAPPIMAGE - return File.Exists($"{Core.ProfilesPath}/{profile.Name}/runner"); + // Use the exe name based on the desktop file in the AppImage, as that's what has been used for patching + string desktopContents = File.ReadAllText($"{Core.PatchDataPath}/data/AM2R.AppDir/AM2R.desktop"); + exe = Regex.Match(desktopContents, @"(?<=Exec=).*").Value; + return File.Exists($"{Core.ProfilesPath}/{profile.Name}/{exe}"); #else return File.Exists($"{Core.ProfilesPath}/{profile.Name}/AM2R.AppImage"); #endif