blob: f9a32c863aea73d330773a2aa17dcbfdf0e087e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
title myautomountd
section 1
project myautomount
volume General Commands Manual
date September 2020
=====
NAME
myautomountd - daemon that generates xdg-desktop files for removable media
SYNOPSIS
myautomountd
DESCRIPTION
Myautomount daemon wraps around udevadm and sets up .desktop files in a designated directory for the discovered removable media. The definition of "discovered" here is anything that is added after the daemon is started, which is the main reason the daemon is designed to be run at X start time at user login. An xdg autostart shortcut is provided which should start up this daemon for you.
Myautomount avoids the use of dbus, which is a main reason it exists.
CONFIGURATION
The global config is set in `/etc/myautomount.conf`. This is actually a shell script that is dot-sourced by the daemon. The file `${HOME}/.config/myautomount.conf` can be user on a per-user basis.
All variables must be exported to be picked up by the program.
INITIALIZATION VARIABLES
* AUTOMOUNT_DIR Where the auto.master.d directory resides, which is usually controlled per distro.
* AUTOMOUNT_DIR_FILE The full path to the file inside auto.master.md where the autofs definitions belong.
* AUTOMOUNT_FILE The full path to the autofs.myautomount file which is the other half of autofs definitions.
DAEMON VARIABLES
* AUTOMOUNT_BASEDIR Where the .desktop files go. This will be consumed by the trayicon.
TRAYICON VARIABLES
* AUTOMOUNT_BASEDIR See `DAEMON VARIABLES` above.
* showmount 0 or 1. Default 1. Show "MOUNTED" for each partition that is currently mounted.
* skip_sd_without_partitions 0 or 1. Default 1. Skip sdb, sdc, etc. NOT CURRENTLY IMPLEMENTED!
* only_update_on_menuitem 0 or 1. Default 0. Disable the mouseover poll. If 1, it breaks showmount=1.
* hide_when_no_media 0 or 1. Default 1. Stay hidden until some removable media is discovered.
LICENSE
BSD-2-Clause
AUTHORS
This shell script started off as a one-to-one translation of a Go program published by the Project Trident team <https://github.com/project-trident/trident-utilities/blob/master/src-go/automount/main.go>.
Translated by <bgstack15@gmail.com>
BUGS
Contribute any bug reports, patches, or comments to <https://gitlab.com/bgstack15/myautomount>
SEE ALSO
myautomount-trayicon(1)
|