1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -06:00

Support $XDG_CONFIG_HOME

This commit is contained in:
Sayantan Santra 2022-07-29 21:51:03 -05:00
parent f147399888
commit b00ddfa0e3

View file

@ -20,7 +20,7 @@
# (sometimes I forget to turn on the monitor when I start my PC, so this is better than having a crontab)
# location of the config file
confdir="/home/sintan/.config"
[ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME"
# read from the config file
if test -f $confdir/latlong.toml ; then