Skip to content

Commit

Permalink
Two small OpenBSD support improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Rane committed Dec 29, 2024
1 parent d5dae89 commit 1a4cfaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions jellyfin_mpv_shim/conffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def win32(app: str):

confdirs = (
("linux", posix),
("openbsd", posix),
("win32", win32),
("cygwin", posix),
(
Expand Down
11 changes: 6 additions & 5 deletions jellyfin_mpv_shim/gui_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])


Expand All @@ -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:
Expand Down

0 comments on commit 1a4cfaa

Please sign in to comment.