Unfortunately, I'm forced to use MS Teams to participate in my ADHD "training" sessions. That means running Teams on my Linux box. And all the bullshit that entails.
One of those bullshit things is that it says FUCK YOU ASSHOLE!!!! and just imposes its own auto-start shit, so that the next time you log in, it'll just start up and fuck you if you don't want it.
Well, there are a variety of ways of preventing MS Teams from forcing itself to auto-start whenever you log in, but most of them just don't work for me.
So, I did the only thing I know that would work unconditionally.
# mv /usr/share/teams/teams /usr/share/teams/teams.exe# cat > /usr/share/teams/teams <<EOF
#!/usr/bin/env bash
/usr/share/teams/teams.exe $*
rm /home/kc5tja/.config/autostart/teams.desktop
EOF
Now, whenever I run Teams, it unconditionally removes its autostart desktop file. Good fucking riddance.