diff --git a/PLRPC.GUI.MacOS/Program.cs b/PLRPC.GUI.MacOS/Program.cs index 2dc1374..72de125 100644 --- a/PLRPC.GUI.MacOS/Program.cs +++ b/PLRPC.GUI.MacOS/Program.cs @@ -5,6 +5,14 @@ public static class Program [STAThread] public static void Main() { + /* + * Attempt to set the current directory to the directory of the app bundle as + * macOS application bundles have their default pwd set to /. + * + * We'll just fall back to "../" if this fails. + */ + Directory.SetCurrentDirectory(Path.GetDirectoryName(Environment.ProcessPath) ?? "../"); + Gui.Initialize(); } } \ No newline at end of file