1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -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) # (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 # 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 # read from the config file
if test -f $confdir/latlong.toml ; then if test -f $confdir/latlong.toml ; then