There are some references to absolute paths in the Teams application
code:
* /usr/share/pixmaps - The application icon.
* /usr/bin/xdg-mime - Uses absolute path to invoke.
* /usr/bin/teams - Uses absolute path in the autostart file if
configured to start automatically at login.
Though the paths are hardcoded they can be easily changed within
the application’s main JavaScript code bundle and so we’ll do just
that.
This should at least fix auto-start not working, even when enabled.
The rect-overlay doesn’t work on non-composited window managers
such as i3 but it’s not a problem for others. Make the choice
available via an argument to the derivation.
The setting defaults to `false` so that it works for a broader
set of users.
See also: #99279.
See db236e588d "steam: Do $PATH lookup in steam.desktop [...]".
tl;dr: Otherwise widget/panel/desktop icons in DEs like KDE break.
I verified that there are no other (executable) paths in the .desktop
file and therefore went for this minimal diff.