smbautomount/.config/systemd/user/gio-mount-myshares.service

14 lines
338 B
Desktop File

[Unit]
Description=GIO mount smb share-name
After=network.target
Before=mpd.service
[Service]
Type=oneshot
ExecStart=/home/%u/.local/bin/multimount.sh
ExecStop=/home/%u/.local/bin/multimount.sh -u
ExecReload=/home/%u/.local/bin/multimount.sh -u && /home/%u/.local/bin/multimount.sh
RemainAfterExit=true
[Install]
WantedBy=default.target