aboutsummaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-25 20:39:41 -0400
committerB Stack <bgstack15@gmail.com>2020-09-25 20:39:41 -0400
commitcee836f71e191e51dd48d34633bfd8c977ba3b8a (patch)
tree5cf0cbf47cea50276f2dc853500400554d04bd04 /src/etc
parentprovide working trayicon now (diff)
downloadmyautomount-cee836f71e191e51dd48d34633bfd8c977ba3b8a.tar.gz
myautomount-cee836f71e191e51dd48d34633bfd8c977ba3b8a.tar.bz2
myautomount-cee836f71e191e51dd48d34633bfd8c977ba3b8a.zip
rename to myautomount
Add annotations to conf file, separate out initialization so daemon can be per-user. Use a sane name.
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/myautomount.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/etc/myautomount.conf b/src/etc/myautomount.conf
new file mode 100644
index 0000000..eef2ca8
--- /dev/null
+++ b/src/etc/myautomount.conf
@@ -0,0 +1,21 @@
+# This config file is dot-sourced by a shell script, for both the daemon
+# and myautomount-trayicon.
+
+# TMPFILE is only needed for trayicon
+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.
+export AUTOMOUNT_DIR=/etc/auto.master.d
+export AUTOMOUNT_DIR_FILE=/etc/auto.master.d/myautomount.autofs
+export AUTOMOUNT_FILE=/etc/autofs.myautomount
+
+# BASEDIR is where the pseudo-xdg desktop files will go. This directory
+# should not be controlled by anything else.
+# The daemon places desktop files here that the trayicon uses.
+export AUTOMOUNT_BASEDIR=/run/user/${UID}/automedia
+
+# This needs to match what you put in /etc/autofs.myautomount, and is
+# where the filesystems get mounted to. This location should not be
+# controlled by anything else.
+export AUTOMOUNT_BROWSEDIR=/browse
bgstack15