Skip to content
This repository was archived by the owner on Mar 5, 2021. It is now read-only.

Support superpowers:// links to join a server or project #8

Open
elisee opened this issue Feb 12, 2016 · 2 comments
Open

Support superpowers:// links to join a server or project #8

elisee opened this issue Feb 12, 2016 · 2 comments

Comments

@elisee
Copy link
Contributor

elisee commented Feb 12, 2016

That would make it very easy to join a server or project through the app.

From Gitter:

We could use Electron to register a custom protocol: https://github.com/atom/electron/blob/master/docs/api/protocol.md
and then links like superpowers://1.2.3.4:4237/ could work?
with a redirect service so that it links in most chats: something like http://server.superpowers-html5.com/#1.2.3.4/4237 that redirect to superpowers://1.2.3.4:4237/

And if the superpowers:// doesn't open the app, the page could still offer to connect directly through the browser. Best of both worlds!

@elisee
Copy link
Contributor Author

elisee commented Aug 28, 2016

OK so turns out electron.protocol is just for handling links within the app, not from the browser.

The alternative seems to be https://github.com/jden/register-protocol-handler which only works on Windows currently (https://github.com/jden/register-protocol-handler-windows) and uses http://npmjs.com/package/edge to communicate with .NET. Seems like a bit overkill? I don't know.

@s0r00t
Copy link

s0r00t commented Feb 7, 2017

On GNU/Linux systems, registering a custom protocol works through xdg-open. It's a matter of creating a desktop file when installing Superpowers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants