How to prevent an application from Auto Starting?

  • there are NO entries under ~/.config/autostart or autostart-scripts
  • I have remvoed file /usr/share/applications/viber.desktop

and yet STILL the application loads on boot???

anybody got a clue as to HOW it does it … and where i might stop this from happening??



A good idea to tell us which application. You could always list the files contained in the application’s RPM for a hint.

Autostart Directories

     The Autostart Directories are $XDG_CONFIG_DIRS/autostart as defined         in accordance with the         "Referencing this specification"]( section in the         "desktop base directory specification"](               
     If the same filename is located under multiple Autostart Directories         only the file under the most important directory should be used.       
       Example: If $XDG_CONFIG_HOME is not set the Autostart Directory           in the user's home directory is ~/.config/autostart/         
       Example: If $XDG_CONFIG_DIRS is not set the system wide Autostart           Directory is /etc/xdg/autostart/         
       Example: If $XDG_CONFIG_HOME and $XDG_CONFIG_DIRS are not set and           the two files /etc/xdg/autostart/foo.desktop and           ~/.config/autostart/foo.desktop exist then only the file            ~/.config/autostart/foo.desktop will be used because           ~/.config/autostart/ is more important than /etc/xdg/autostart/

Maybe it has a systemd service?

So, first the obvious questions: Do you have the system set to restore previous session? And, do you have the program running when you shut down?

If the answer is yes to both of those, then that is why.

I mention this because there are a few people in here recently who had the same problem and that was the answer.

Yes, that could well be the case too. It would be helpful if the OP provided more information so that we’re not left to guess.

Yes … sorry for lack of info. App is Viber and yes had already read the info **Autostart Directories

**Viber itself has an option in its interface to ‘Start Viber on System startup’ … which i turned off … but still it loaded! After reading your post FB i looked in memory and saw that it was still loaded even though i had closed it via its GUI … so u are right … i was still loaded every time i rebooted … and so i must have ‘restore previous session’ activated?? … but i don’t know where or how to get to that setting.

I killed it when in memory and rebooted and this time it did not show up, but most interested to learn where to adjust ‘restore previous session’

Thanks to all who contributed.

OpenSuse 42.1 KDE

Configure Desktop=>Startup and Shutdown=>Session Management;)

Thanks FB … on my system it is actually … [System Settings => Startup and Shutdown => Desktop Session => On Login] … and interestingly there is an option in which i can simply exclude Viber (or any other app) from the Session Restore … which i have done! … Most elegant!

Thank you.

… oh, right. It is slightly different in Leap. I still have not tested any Leap installs, and my machines are still all running 13.1.