Is there a way of disabling a snap from automatically starting?

I installed the microk8s snap, which is very cool, however it starts automatically every time I restart my computer. I can stop it when I have logged in but it eats all my CPU and chews up disk time. Sometimes it can take several minutes just to get a gui up.

I can stop the service using microk8s.stop once I get a terminal running.

I want to be able to start the snap when it's needed, but this seems to integrate as a core service.

Any help is definitely appreciated!

3 Answers 3


To disable a service, use the systemctl command such as systemctl disable snap.snapname.application.service. For example to disable the apache webserver inside the nextcloud snap - use systemctl disable snap.nextcloud.apache.service. You can get a list of the services using snap services.

You can completely disable snaps with snap disable (name) and enable when you need it with snap enable (name).

You can see the names of services in snap info (snapname).

  • This disables the app entirely rather than just prevent it from automatically starting. While it works, for an app that you actually want to use (just don't want to autostart) it adds an extra step every time you want to open it. Seems like overkill.
    – bmaupin
    6 hours ago
  • Good point. I'll edit this.
    – popey
    2 hours ago

I'd prefer that snaps require to ask for specific permission for autostart....

best I've found is some .desktop files that have an entry in them for autostart.

I have found in ~/.config/autostart/ some snaps with a .desktop file there. SkypeForLinux for example.

Other times in ./snap/$snapname/current/autostart/ I've found Microsoft Teams in there.


One more detail. If you edit X-GNOME-Autostart-enabled to false on Microsoft Teams, the app will change it to true when you execute it. To prevent that I cleared the write attribute of the .desktop file. Now MS Teams can't write to it.

  • For MS Teams specifically, you can set this within the app itself: 3 dots menu > Settings > General uncheck Auto-start application. Then it will stop overwriting the file.
    – bmaupin
    6 hours ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.