From 3420234b51432a65d1ef43f179063f3f6b2cff6a Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 27 Sep 2020 11:52:26 -0400 Subject: handle if user config does not exist --- src/usr/bin/myautomount-trayicon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr/bin') 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 -- cgit