Skip to content

Instantly share code, notes, and snippets.

@Markus-de-Koster
Last active March 5, 2025 13:35
Show Gist options
  • Save Markus-de-Koster/4006b75e358a80bb9625485dfffa9466 to your computer and use it in GitHub Desktop.
Save Markus-de-Koster/4006b75e358a80bb9625485dfffa9466 to your computer and use it in GitHub Desktop.
Open Teams links in edge PWA, for all other links, use firefox (Linux Ubuntu)
#!/bin/bash
# URL passed to the script
url="$1"
app_id=""
edge_path="/path/to/microsoft-edge"
# Check if the URL is a Teams link
if [[ "$url" == *"teams.microsoft"* ]]; then
# Change the command below to the command that opens the Edge PWA
$edge_path --profile-directory=Default --app-id=$app_id "$url"
else
# Opens all other links in Firefox
firefox "$url"
fi
[Desktop Entry]
Name=Custom Browser Opener
Exec=/home/yourusername/custom_browser_opener.sh %u
Type=Application
Terminal=false
MimeType=x-scheme-handler/http;x-scheme-handler/https;
@Markus-de-Koster
Copy link
Author

Unfortunately, this does not work too well after the "New Teams" update...
Don't expect a fix in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment