Preventing MS Teams from invoking the calling tone or worse when resuming media playback
Desktop versions of MS Teams have had a jaw-droppingly stupid bug for more than a year - pushing the play media key causes Teams to either invoke a call tone without calling anyone (bafflingly stupid) or call back the group or individual you’ve just been meeting with (embarrassing and aggressively antagonistic towards the poor user). This looks to be because Teams registers itself as a media player through the Electron framework it is built on. Why that means playing an empty call tone makes sense is beyond my understanding. Why it hasn’t and likely will never be fixed is a rant for a different day, along with other unflattering and somewhat unprintable opinions I hold about MS Teams and its (sheer lack of) feature set compared to other chat and meeting software.
To fix it, I followed the advice here. On my Linux box:
- Open /usr/share/applications/teams.desktop as the root user
- Modify the Exec=teams %U entry in the [Desktop Entry] section to be Exec=teams -disable-features=HardwareMediaKeyHandling %U
- Restart Teams
- Optionally, shake head sadly
I also have a suspicion that Teams overwrote my above change in an update, so I’ve also taken this step. As of 11 Oct ‘21 I don’t know if it’s helped yet:
chmod ugo-w /usr/share/applications/teams.desktop