assume default values if xdg dirs not set

This commit is contained in:
Luke Smith committed 2020-04-08 17:21:40 -04:00
1 parent 2c06dd36c6
commit 422d106fba
32 files changed
+86 -91

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ case $BLOCK_BUTTON in
- Middle click syncs mail" ;;
esac
unread="$(find $XDG_DATA_HOME/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)"
unread="$(find ${XDG_DATA_HOME:$HOME/.local/share}/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)"
icon="$(cat "/tmp/imapsyncicon_$USER")"