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 firefox.
- Install edge / chrome / ...
- Install PWA for teams
- In edge / chrome , navigate to
edge://apps
orchrome://apps
, respectively. - Click on
details
for MS Teams PWA Create Shortcut...
, selectDesktop
- The desktop file will be created on your Desktop, now we can retrieve the app-id.
- the file name contains the app id
~/Desktop/msedge-APPID-Default.desktop
- or you can read the file content:
cat ~/Desktop/msedge-APPID-Default.desktop
and see it there
- copy the app id into the
custom_browser_opener.sh
script - 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.