]> git.phdru.name Git - IM.git/commitdiff
Feat(im-status.sh): Check if the programs are running master
authorOleg Broytman <phd@phdru.name>
Mon, 6 Apr 2020 21:43:03 +0000 (00:43 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 6 Apr 2020 21:46:09 +0000 (00:46 +0300)
im-status.sh

index 8d5685bb2f430948cee6165967570209a8a92361..21abf822cd75b63575cfae59cace648cc673313a 100755 (executable)
@@ -36,7 +36,9 @@ esac
 xtitle "$1" "$2" "$title" &&
 if [ "`gajim-remote check_gajim_running 2>/dev/null | tail -1`" = True ]; then
    gajim-remote change_status "$2" "$title"
-else
+elif pgrep pidgin >/dev/null; then
    purple-remote "setstatus?status=$status&message=$status_msg"
 fi
-exec skype_status_mood.py "$skype_status" "$3" >/dev/null 2>&1
+if pgrep skype >/dev/null; then
+   exec skype_status_mood.py "$skype_status" "$3" >/dev/null 2>&1
+fi