aboutsummaryrefslogtreecommitdiff
path: root/src/usr
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-27 11:52:26 -0400
committerB Stack <bgstack15@gmail.com>2020-09-27 11:52:26 -0400
commit3420234b51432a65d1ef43f179063f3f6b2cff6a (patch)
tree8772e7460d0d0f6d036cb56745a404576f3af5f1 /src/usr
parentadd license texts, add user config to trayicon (diff)
downloadmyautomount-3420234b51432a65d1ef43f179063f3f6b2cff6a.tar.gz
myautomount-3420234b51432a65d1ef43f179063f3f6b2cff6a.tar.bz2
myautomount-3420234b51432a65d1ef43f179063f3f6b2cff6a.zip
handle if user config does not exist
Diffstat (limited to 'src/usr')
-rwxr-xr-xsrc/usr/bin/myautomount-trayicon4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/bin/myautomount-trayicon b/src/usr/bin/myautomount-trayicon
index 2b39ced..d6ccc9f 100755
--- a/src/usr/bin/myautomount-trayicon
+++ b/src/usr/bin/myautomount-trayicon
@@ -1,6 +1,6 @@
#!/bin/sh
# Part of myautomount project
. ${MYA_PREFIX}/etc/myautomount.conf
-. ${XDG_CONFIG_HOME:-${HOME}/.config}/myautomount.conf
-env
+MYA_USER_CFG="${XDG_CONFIG_HOME:-${HOME}/.config}/myautomount.conf"
+test -r "${MYA_USER_CFG}" && . "${MYA_USER_CFG}"
${MYA_PREFIX}/usr/libexec/myautomount/myautomount-trayicon.py
bgstack15