Teams on Linux is currently only available as Progressive Web App (PWA). However, PWA are only supported in chromium-based browsers. For a multitude of reasons, you might not want to use chromium-based browsers as your default browser. This script opens links to teams in the PWA while opening all other links in your default browser (here: firefox).
- Install edge / chrome / ...
- Install PWA for teams
- Find the path to edge / chrome:
whereis microsoft-edge
whereis chrome
- copy the path into the
custom_browser_opener.sh
script - Save the script at your favourite location e.g. your home location
- make it executable:
chmod +x ~/custom_browser_opener.sh
- Create a .desktop file for the script. For example,
yourname-custom_browser_opener.desktop
, Note that the name must contain a vendor prefix separated by a dash (-
) - Replace
/home/yourusername/custom_browser_opener.sh
with the actual path to your script. - Register the .desktop file with your system:
xdg-desktop-menu install /path/to/yourname-custom_browser_opener.desktop
xdg-mime default yourname-custom_browser_opener.desktop x-scheme-handler/http
xdg-mime default yourname-custom_browser_opener.desktop x-scheme-handler/https
Unfortunately, this does not work too well after the "New Teams" update...
Don't expect a fix in the near future.