Fix MPV IPC socket path regex
This commit is contained in:
parent
97b27287f5
commit
da6e72bb80
|
@ -24,7 +24,7 @@ export DEBUG
|
||||||
PATH="${PATH}:${PROGDIR}"
|
PATH="${PATH}:${PROGDIR}"
|
||||||
|
|
||||||
## Default values for some vars
|
## Default values for some vars
|
||||||
readonly MPV_PROC_REGEXP="mpv.*--input-ipc-server"
|
readonly MPV_PROC_REGEXP="^mpv.*--input-ipc-server="
|
||||||
readonly KODI_PROC_REGEXP="kodi.bin"
|
readonly KODI_PROC_REGEXP="kodi.bin"
|
||||||
readonly MPD_PROC_REGEXP="mpd.*systemd"
|
readonly MPD_PROC_REGEXP="mpd.*systemd"
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ main() { # {{{
|
||||||
## Define all vars
|
## Define all vars
|
||||||
define_vars
|
define_vars
|
||||||
|
|
||||||
## If MPV with an IPS-socket is running {{{
|
## If MPV with an IPC-socket is running {{{
|
||||||
### AND Send multimedia command to MPV sub-script
|
### AND Send multimedia command to MPV sub-script
|
||||||
### AND exit 0
|
### AND exit 0
|
||||||
is_proc_running "${MPV_PROC_REGEXP}" \
|
is_proc_running "${MPV_PROC_REGEXP}" \
|
||||||
|
|
Loading…
Reference in New Issue