aboutsummaryrefslogtreecommitdiff
path: root/src/etc/myautomount.conf
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-29 22:47:28 -0400
committerB Stack <bgstack15@gmail.com>2020-09-29 22:47:28 -0400
commit0d5f8b7657527eab8380f5aa81ecd072714cf13c (patch)
tree80de0f0ea39fd4690d07f85856ab6511175bff8f /src/etc/myautomount.conf
parentadd sudo rule (diff)
downloadmyautomount-0d5f8b7657527eab8380f5aa81ecd072714cf13c.tar.gz
myautomount-0d5f8b7657527eab8380f5aa81ecd072714cf13c.tar.bz2
myautomount-0d5f8b7657527eab8380f5aa81ecd072714cf13c.zip
add sudo, fix initialization
Diffstat (limited to 'src/etc/myautomount.conf')
-rw-r--r--src/etc/myautomount.conf2
1 files changed, 1 insertions, 1 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.
bgstack15