Skip to content

Commit

Permalink
Re-enable UseShellExecute to fix Lönn freezing during startup
Browse files Browse the repository at this point in the history
By the power of copy-paste! (this is eb33efa but Lönn)
  • Loading branch information
maddie480 committed Dec 23, 2024
1 parent 43ecacc commit 6782e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
Make sure Olympus.Sharp is executable before running it on macOS and Linux
Fixed Lönn freezing during startup when ran through Olympus on Windows
3 changes: 1 addition & 2 deletions sharp/CmdLaunchLoenn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class CmdLaunchLoenn : Cmd<string, string> {

public override string Run(string root) {
Process loenn = new Process();
loenn.StartInfo.UseShellExecute = true;

if (PlatformHelper.Is(Platform.Windows)) {
loenn.StartInfo.FileName = Path.Combine(root, "Lönn.exe");
Expand All @@ -18,13 +19,11 @@ public override string Run(string root) {
// use the find-love script that olympus also uses
loenn.StartInfo.FileName = Path.Combine(Program.RootDirectory, "find-love");
loenn.StartInfo.Arguments = Path.Combine(root, "Lönn.love");
loenn.StartInfo.UseShellExecute = true;
loenn.StartInfo.WorkingDirectory = Program.RootDirectory;
} else {
// run the app
loenn.StartInfo.FileName = "open";
loenn.StartInfo.Arguments = "Lönn.app";
loenn.StartInfo.UseShellExecute = true;
loenn.StartInfo.WorkingDirectory = root;
}

Expand Down

0 comments on commit 6782e25

Please sign in to comment.