X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=examples%2Fdata%2Fuzbl%2Fscripts%2Fsession.sh;h=4dbae553a245b5b1e7a3d5cba8fdc1b89d8aabda;hb=d36686924a2b7d81ad5c74b38249e53af0b6449e;hp=e2642c7da7784e5fdb0bb7cffd268ed9008c72e8;hpb=19489f84dbf0316222e27216c622929492d6fe4d;p=uzbl-mobile diff --git a/examples/data/uzbl/scripts/session.sh b/examples/data/uzbl/scripts/session.sh index e2642c7..4dbae55 100755 --- a/examples/data/uzbl/scripts/session.sh +++ b/examples/data/uzbl/scripts/session.sh @@ -8,9 +8,10 @@ # and doesn't need to be called manually at any point. # Add a line like 'bind quit = /path/to/session.sh endsession' to your config +[ -d ${XDG_DATA_HOME:-$HOME/.local/share}/uzbl ] || exit 1 scriptfile=$0 # this script -sessionfile=$XDG_DATA_HOME/uzbl/session # the file in which the "session" (i.e. urls) are stored -configfile=$XDG_DATA_HOME/uzbl/config # uzbl configuration file +sessionfile=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/session # the file in which the "session" (i.e. urls) are stored +configfile=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/config # uzbl configuration file UZBL="uzbl -c $configfile" # add custom flags and whatever here. fifodir=/tmp # remember to change this if you instructed uzbl to put its fifos elsewhere