linux mpv doesn't understand --input-media-keys
This commit is contained in:
parent
6affae1489
commit
bb6844716c
@ -73,7 +73,6 @@ class MPVBase:
|
||||
"--force-window=no",
|
||||
"--ontop",
|
||||
"--audio-display=no",
|
||||
"--input-media-keys=no",
|
||||
]
|
||||
|
||||
def __init__(self, window_id=None, debug=False):
|
||||
|
@ -84,7 +84,7 @@ def retryWait(proc):
|
||||
# MPV
|
||||
##########################################################################
|
||||
|
||||
from anki.mpv import MPV
|
||||
from anki.mpv import MPV, MPVBase
|
||||
|
||||
mpvPath, mpvEnv = _packagedCmd(["mpv"])
|
||||
|
||||
@ -93,6 +93,11 @@ class MpvManager(MPV):
|
||||
executable = mpvPath[0]
|
||||
popenEnv = mpvEnv
|
||||
|
||||
if not isLin:
|
||||
default_argv = MPVBase.default_argv + [
|
||||
"--input-media-keys=no",
|
||||
]
|
||||
|
||||
def __init__(self):
|
||||
super().__init__(window_id=None, debug=False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user