foobar2000.sh: run foocmd only if foobar2000 is already opened
This commit is contained in:
parent
b84d7b24fb
commit
208c6846db
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ foobar2000_cmd="$HOME/.foobar2000/foobar2000.exe"
|
|||
|
||||
|
||||
function foo_runcmd {
|
||||
wine "$foobar2000_cmd" "${@}" &> /dev/null
|
||||
if pgrep foobar2000.exe &> /dev/null; then
|
||||
wine "$foobar2000_cmd" "${@}" &> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue