comment xdg fallback behaviour
authorConnor Lane Smith <cls@lubutu.com>
Mon, 19 Dec 2011 15:05:55 +0000 (16:05 +0100)
committerConnor Lane Smith <cls@lubutu.com>
Mon, 19 Dec 2011 15:05:55 +0000 (16:05 +0100)
dmenu_run

index 2bb1dfd..976da46 100755 (executable)
--- a/dmenu_run
+++ b/dmenu_run
@@ -3,7 +3,7 @@ cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
 if [ -d "$cachedir" ]; then
        cache=$cachedir/dmenu_run
 else
 if [ -d "$cachedir" ]; then
        cache=$cachedir/dmenu_run
 else
-       cache=$HOME/.dmenu_cache
+       cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
 fi
 (
        IFS=:
 fi
 (
        IFS=: