How can I launch an app through JavaScript or setup a shortcut like spotify:open on my app?
Examples:
Thank you for your help,
Eric.
>Solution :
The app needs to implement the custom protocol then you can invoke the protocol via url link or javascript redirect like we do for http, https or mail.
For example, following link opens spotify if user confirms the dialog asking if it is what he wants:
<a href="spotify:open">Open Spotify</a>
Here is how a custom protocol can be implemented/supported in Electron apps: https://www.electronjs.org/docs/latest/api/protocol