Auto-startup problem with Microsoft Teams

The only method I have found so far to solve the problem is configuring settings in Teams:

Right click the Teams icon on the system tray --> open settings --> uncheck autostart

The following methods do not work.

  1. If you disable Teams as a startup application, it will enable itself the next time you open Teams.
  2. If you restrict the write access to autostart folder only to superusers (so that Teams cannot add itself to startup applications), Teams will refuse to open and show errors.

Another way is to achieve this is to add the following line into your ~/.profile file :

rm ~/.config/autostart/whatever_the_name_is.desktop

When you login , even before the DE starts the profile file gets executed and removes the .desktop file.So even if the Microsoft teams creates that file each time you open it , after logout and log-back there shouldn't be any problem.

Or even if that doesn't work(i.e the DE starts before the profile gets executed which I don't think to be the case),you can just kill the process via the killall command in ~/.profile.