foobar2000.sh: run foocmd only if foobar2000 is already opened

This commit is contained in:
Viyurz 2023-10-11 13:49:20 +02:00
parent b84d7b24fb
commit 208c6846db
No known key found for this signature in database

View file

@ -7,7 +7,9 @@ foobar2000_cmd="$HOME/.foobar2000/foobar2000.exe"
function foo_runcmd { function foo_runcmd {
wine "$foobar2000_cmd" "${@}" &> /dev/null if pgrep foobar2000.exe &> /dev/null; then
wine "$foobar2000_cmd" "${@}" &> /dev/null
fi
} }