Stop Microsoft Teams from starting on startup
Linux #ubuntu #linuxSolution
- Open
~/.config/autostart/teams.desktopfile and setX-GNOME-Autostart-enabledto false.sudo vim ~/.config/autostart/teams.desktop - Make this file not editable using the following command
sudo chattr +i ~/.config/autostart/teams.desktop
This will prevent teams from modifying this file and rewriting X-GNOME-Autostart-enabled to true
chattr +icommand changes the attributes of file and addsito it.A file with theiattribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file, most of the file’s metadata can not be modified, and the file can not be opened in write mode.
If you have set chattr +i before modifying the teams.desktop file, then remove i attr from file using chattr -i before editing it, otherwise you won’t be able to edit the file.