mirror of
https://git.srhtnin.garden/sarah/SaraFem.git
synced 2026-10-15 10:23:17 +02:00
macOS support
This commit is contained in:
1 parent
3fcaf328a9
commit
b2eedc9ec8
5 files changed
+161
-21
No files matched your search
+1
-1
@@ -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}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user