Resolved status bar styling issue and added help text in file.
[uzbl-mobile] / examples / data / uzbl / scripts / load_url_from_bookmarks.sh
index eb04873..78ee726 100755 (executable)
@@ -2,8 +2,8 @@
 
 #NOTE: it's the job of the script that inserts bookmarks to make sure there are no dupes.
 
-file=$XDG_DATA_HOME/uzbl/bookmarks
-[ -z "$file" ] && exit 
+file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/bookmarks
+[ -r "$file" ] || exit 
 COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030"
 if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]'
 then