TonCunha / multi-microsoft-teams

Launcher to manage profiles and open multiple instances of Microsoft Teams desktop version. It's compatible with many accounts and organizations (tenants).
GNU General Public License v3.0
200 stars 39 forks source link

Feature Request: Url handler interceptor #15

Open frankhommers opened 3 years ago

frankhommers commented 3 years ago

I am not sure if this can be done, but:

Would it be possible to handle the URL's by this tool, so I can select an account which the URL gets opened with.

Reason for this: I have an unified email box where all my Teams invites will end up in. So when I click on some of them they will end up in my "default" teams account.

If you would be able to "hijacking" this the msteams:/ URL handler, pointing it to your tool, and then passing the arguments through after selecting the right account, that would be great.

I think these keys need to be pointed to your tool: HKEY_CURRENT_USER\SOFTWARE\Classes\msteams\shell\open\command and/or HKEY_CURRENT_USER\SOFTWARE\Classes\ms-teams\shell\open\command

Let me know if I can help?

TonCunha commented 2 years ago

I'll check if this is possible and that it won't bring any abnormality to Microsoft Teams

spackmat commented 2 years ago

Hey, that would be very handy!

In practice, I regulary stumble upon the opposite problem: Links I open from a Teams instance running under another account open a browser or whatever the link points to under that account. Ich don't think that can be fixed from outside of Teams itself, as it calls the system's link handler on its own, but maybe someone has an idea on that.

bogomazdmitry commented 2 years ago

You can check PR for this: https://github.com/TonCunha/multi-microsoft-teams/pull/26