Skip to content

udisks2-based automounter that adds mountpoints to the mpd library.

License

Notifications You must be signed in to change notification settings

muesli4/mpd-automount

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpd-automount - An automounter that interacts with MPD

Purpose

mpd-automount is a small C++ program that interacts with UDisks2 via D-Bus to automount removable devices as a normal user and then add them as symbolic links to the MPD library. This linking is done with a bash script that requires mpc which selectively updates the MPD database.

mpd-automount will mount any unmounted filesystems while starting. That means it assumes it is the only application that mounts devices apart from the system. For existing links the library will not be refreshed as it is assumed the device was plugged in all the time. (Links that do not have corresponding device are not removed yet and do not trigger any MPD updates. This will be implemented in the future by keeping track of connected devices across invocations. Context: Removing devices while daemon is not running.)

Configuration

mpd-automount will create a configuration file in $XDG_CONFIG_HOME or $HOME/.config if it is missing. The default config is:

MPD_LIBRARY_PATH=~/Music
LINK_SUB_DIRECTORY=.

LINK_SUB_DIRECTORY specifies where, relative to the library path, the links are placed.

Dependencies

Compiling

  • autoreconf -vfi
  • ./configure
  • make
  • make install

Running

Either run mpd-automount or use systemctl --user start mpd-automount (systemctl --user enable mpd-automount to always start it).

Credits

This program has been forked from usermount.

About

udisks2-based automounter that adds mountpoints to the mpd library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 52.6%
  • Shell 26.4%
  • M4 18.3%
  • Makefile 2.7%