I currently have a wierd problem: i cant stop mpd from autostarting after reboot. I installed mpd from the official repositorys.
then i disabled it at systemd because i want it to run under the normal user and not as a service automatically:
sudo systemctl disable mpd
after chechking
sudo systemctl status mpd
it was inactive then.
but after the next reboot, systemd still spawns a process mpd.
only solution was:
sudo systemctl mask mpd
But the crazy thing is: another mpd process is still being spawned at startup, with the folder autostart under ~/config being empty and i also start with an empty session on bootup.
The final question: how do i really get rid of the autostart of mpd? i just want to start it manually, thats all.
You now disabled system-wide automatic launching of mpd. However, next to that, an automatic per-user startup is also automatically enabled in Ubuntu. Thus, if you disable the system wide mpd service, an autostart process will start a user-specific instance as soon as you log in.
To safely disable autostart:
/etc/xdg/autostart/mpd.desktop
to~/.config/autostart/mpd.desktop
~/.config/autostart/mpd.desktop
to changeX-GNOME-Autostart-enabled=true
toX-GNOME-Autostart-enabled=false
, or delete the lineA local .desktop file takes priority over a system wide launcher. Instead of editing the system wide launcher, creating and changing a private copy is better practice because 1) you only affect your current user, 2) you do not need root permissions to customize the starter, and 3) your changes will not be overwritten by possible system updates.