summaryrefslogtreecommitdiff
path: root/lib/gui/electron.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gui/electron.py')
-rw-r--r--lib/gui/electron.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gui/electron.py b/lib/gui/electron.py
index d3547c34..6a31abe1 100644
--- a/lib/gui/electron.py
+++ b/lib/gui/electron.py
@@ -24,6 +24,10 @@ def open_url(url):
electron_path = os.path.join(base_dir, "out", package_dir, "inkstitch-gui")
- app_process = subprocess.Popen([electron_path, url])
+ if sys.platform == "darwin":
+ electron_path += ".app/Contents/MacOS/inkstitch-gui"
+ app_process = subprocess.Popen(["open", "-a", electron_path, "--args", url])
+ else:
+ app_process = subprocess.Popen([electron_path, url])
return app_process