diff options
author | B Stack <bgstack15@gmail.com> | 2020-09-27 11:52:26 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-09-27 11:52:26 -0400 |
commit | 3420234b51432a65d1ef43f179063f3f6b2cff6a (patch) | |
tree | 8772e7460d0d0f6d036cb56745a404576f3af5f1 /src/usr/bin | |
parent | add license texts, add user config to trayicon (diff) | |
download | myautomount-3420234b51432a65d1ef43f179063f3f6b2cff6a.tar.gz myautomount-3420234b51432a65d1ef43f179063f3f6b2cff6a.tar.bz2 myautomount-3420234b51432a65d1ef43f179063f3f6b2cff6a.zip |
handle if user config does not exist
Diffstat (limited to 'src/usr/bin')
-rwxr-xr-x | src/usr/bin/myautomount-trayicon | 4 |
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 |