diff options
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/myautomount.conf | 2 | ||||
-rw-r--r-- | src/etc/sudoers.d/40_myautomount_sudo | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/myautomount.conf b/src/etc/myautomount.conf index a64dace..543649a 100644 --- a/src/etc/myautomount.conf +++ b/src/etc/myautomount.conf @@ -2,7 +2,7 @@ # and myautomount-trayicon. # TMPFILE is only needed for trayicon -export AUTOMOUNT_TMPFILE="$( TMPDIR="/run/user/${UID}" mktemp -t ${USER}.automount.XXXXXXXXX )" +test -z "${AUTOMOUNT_DAEMON}" && export AUTOMOUNT_TMPFILE="$( TMPDIR="/run/user/${UID}" mktemp -t ${USER}.automount.XXXXXXXXX )" # DIR and FILE are for the initialization only. These are the most # likely to change per distro. diff --git a/src/etc/sudoers.d/40_myautomount_sudo b/src/etc/sudoers.d/40_myautomount_sudo index 7f31d15..5c45984 100644 --- a/src/etc/sudoers.d/40_myautomount_sudo +++ b/src/etc/sudoers.d/40_myautomount_sudo @@ -1,3 +1,3 @@ # File: /etc/sudoers.d/30_myautomount_sudo -Defaults env_keep += "DRYRUN VERBOSE MYA_PREFIX DEBUG" +Defaults env_keep += "DRYRUN VERBOSE MYA_PREFIX DEBUG AUTOMOUNT_USER" ALL ALL = (root) NOPASSWD: /usr/libexec/myautomount/myautomount-initialize.sh |