From 1a4cfaa6a6bafbc2a80c639954d1468b2acb0886 Mon Sep 17 00:00:00 2001 From: Rane Date: Sun, 29 Dec 2024 15:35:54 +1100 Subject: [PATCH] Two small OpenBSD support improvements --- jellyfin_mpv_shim/conffile.py | 1 + jellyfin_mpv_shim/gui_mgr.py | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/jellyfin_mpv_shim/conffile.py b/jellyfin_mpv_shim/conffile.py index 37df15e953..1288049d4d 100644 --- a/jellyfin_mpv_shim/conffile.py +++ b/jellyfin_mpv_shim/conffile.py @@ -24,6 +24,7 @@ def win32(app: str): confdirs = ( ("linux", posix), + ("openbsd", posix), ("win32", win32), ("cygwin", posix), ( diff --git a/jellyfin_mpv_shim/gui_mgr.py b/jellyfin_mpv_shim/gui_mgr.py index d65953ce3b..36c0433a9f 100644 --- a/jellyfin_mpv_shim/gui_mgr.py +++ b/jellyfin_mpv_shim/gui_mgr.py @@ -24,7 +24,7 @@ def _show_file_darwin(path: str): subprocess.Popen(["open", path]) -def _show_file_linux(path: str): +def _show_file_xdg(path: str): subprocess.Popen(["xdg-open", path]) @@ -33,10 +33,11 @@ def _show_file_win32(path: str): _show_file_func = { - "darwin": _show_file_darwin, - "linux": _show_file_linux, - "win32": _show_file_win32, - "cygwin": _show_file_win32, + "darwin": _show_file_darwin, + "linux": _show_file_xdg, + "openbsd": _show_file_xdg, + "win32": _show_file_win32, + "cygwin": _show_file_win32, } try: