linux mpv doesn't understand --input-media-keys

This commit is contained in:
Damien Elmes 2018-01-21 10:34:29 +10:00
parent 6affae1489
commit bb6844716c
2 changed files with 6 additions and 2 deletions

View File

@ -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):

View File

@ -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)