tUse xmessage instead of notify-send, and add notification after db refresh - scholarref - tools for DOI and BiBTeX reference extraction, fetching, and parsing
(HTM) git clone git://src.adamsgaard.dk/scholarref
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8fc2c5f8364d8b9c2883ee3aa2b701333a879e62
(DIR) parent a35f42aff6466a8f6e2463db31accab7fc6a234a
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 16 Sep 2020 09:42:31 +0200
Use xmessage instead of notify-send, and add notification after db refresh
Diffstat:
M articlesearch | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/articlesearch b/articlesearch
t@@ -12,6 +12,7 @@ update_cache() {
find $dir -type f \
-iname "*.pdf" -o -iname "*.eps" -o -iname "*.gs" \
-o -iname "*.djvu" -o -iname "*.epub" > "$cachefile"
+ xmessage "${0##*/} database update complete"
}
if [ "$1" = "-u" ]; then
t@@ -60,5 +61,5 @@ elif [ "$action" = "Sci-Hub" ]; then
elif [ "$action" = "Add reference" ]; then
scholarref --add "$query"
else
- notify-send --category=error "${0##*/}" "Action not understood"
+ xmessage "${0##*/}\nAction not understood"
fi