macOS support

This commit is contained in:
sarah committed 2026-10-14 13:18:19 +02:00
1 parent 3fcaf328a9
commit b2eedc9ec8
5 files changed
+161 -21

No files matched your search

+1 -1
View File
@@ -927,7 +927,7 @@ class Browser(ft.Row):
if sys.platform == "win32":
os.startfile(str(EntryPath)) # the default app
else:
subprocess.Popen(["xdg-open", str(EntryPath)])
subprocess.Popen(["open" if sys.platform == "darwin" else "xdg-open", str(EntryPath)])
except OSError as Error:
self._Notify(f"Couldn't open {EntryPath.name}: {Error}")