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