Skip to content

Commit

Permalink
Merge pull request ku1ik#21 from Logaritmisk/master
Browse files Browse the repository at this point in the history
Application name for growlnotify
  • Loading branch information
ku1ik committed Dec 14, 2011
2 parents 630e6d8 + 525092d commit 0d855f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-dude
Expand Up @@ -24,6 +24,7 @@ set -e


interval=$(git config dude.interval || true) interval=$(git config dude.interval || true)
interval=${interval:-60} interval=${interval:-60}
app_name=$(basename $0)


export LC_ALL=C # make sure git talks english export LC_ALL=C # make sure git talks english


Expand All @@ -32,7 +33,7 @@ if [[ $(git config dude.notify-command) ]]; then
elif [ $(which notify-send 2>/dev/null) ]; then elif [ $(which notify-send 2>/dev/null) ]; then
notify_cmd='notify-send -i "$ICON_PATH" "$TITLE" "$DESCRIPTION"' notify_cmd='notify-send -i "$ICON_PATH" "$TITLE" "$DESCRIPTION"'
elif [ $(which growlnotify 2>/dev/null) ]; then elif [ $(which growlnotify 2>/dev/null) ]; then
notify_cmd='growlnotify --image "$ICON_PATH" -m "$DESCRIPTION" "$TITLE"' notify_cmd='growlnotify -n "$app_name" --image "$ICON_PATH" -m "$DESCRIPTION" "$TITLE"'
elif [ $(which kdialog 2>/dev/null) ]; then elif [ $(which kdialog 2>/dev/null) ]; then
notify_cmd='kdialog --icon $ICON_PATH --title "$TITLE" --passivepopup "$DESCRIPTION"' notify_cmd='kdialog --icon $ICON_PATH --title "$TITLE" --passivepopup "$DESCRIPTION"'
fi fi
Expand Down

0 comments on commit 0d855f9

Please sign in to comment.