In Windows, you can create a shortcut to open a URL using a specific browser, with a specific profile, rather than the default browser/profile.
The shortcut contains the file path to the browser executable, a space, then a switch(?) to specify the profile, then another space, then the URL.
As an example, this shortcut would open Google Calendar, using the Google Chrome browser, in the second registered profile, which might be called “Work”.
“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” --profile-directory=“Profile 2” https://calendar.google.com/calendar/u/0/
I’d like to use these types of links within Obsidian, but haven’t been able to get them to work
I’ve tried adding an external link exactly as it would look in the shortcut (although I didn’t expect this to work, due to the spaces not being escaped):
[Work Calendar](“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” --profile-directory=“Profile 2” https://calendar.google.com/calendar/u/0/)
I’ve tried encoding just the spaces:
[Work Calendar](“C:\Program%20Files%20(x86)\Google\Chrome\Application\chrome.exe”%20–profile-directory=“Profile 2”%20https://calendar.google.com/calendar/u/0/)
I’ve tried encoding the whole lot:
I know that the plugin Open Link With exists, but it doesn’t fit what I’m trying to do.
Any help would be appreciated. Thanks.