Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening atom:// with Atom #36

Closed
probablycorey opened this issue Jul 9, 2013 · 5 comments
Closed

Opening atom:// with Atom #36

probablycorey opened this issue Jul 9, 2013 · 5 comments

Comments

@probablycorey
Copy link

We want to use urls with the atom scheme (like atom://share-session/90210).

Is there a way to open these urls with Atom?

@nathansobo
Copy link

Will this interfere with anything related to the existing Atom publishing
protocol? Not that I necessarily think that's a show-stopper. Just curious.

On Tue, Jul 9, 2013 at 3:30 PM, Corey Johnson notifications@github.comwrote:

We want to use urls with the atom scheme (like
atom://share-session/90210).

Is there a way to open these urls with Atom?


Reply to this email directly or view it on GitHubhttps://github.com//issues/36
.

@zcbenz
Copy link
Member

zcbenz commented Jul 10, 2013

@probablycorey do you want it to be system global, so Atom would be opened with atom:// scheme urls when they are opened from other applications?

@probablycorey
Copy link
Author

If possible that is what we want. The use case we are thinkin if is: one
person pastes an atom link into a chat room when another user clickes that
link it will open atom and join a collaboration session.

On Tuesday, July 9, 2013, Cheng Zhao wrote:

@probablycorey https://github.com/probablycorey do you want it to be
system global, so Atom would be opened with atom:// scheme urls when they
are opened from other applications?


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-20714312
.

@zcbenz zcbenz closed this as completed in 23dd5b4 Jul 10, 2013
@nathansobo
Copy link

I'm pretty sure that's what he's talking about, yes.

On Tue, Jul 9, 2013 at 6:12 PM, Cheng Zhao notifications@github.com wrote:

@probablycorey https://github.com/probablycorey do you want it to be
system global, so Atom would be opened with atom:// scheme urls when they
are opened from other applications?


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-20714312
.

@zcbenz
Copy link
Member

zcbenz commented Jul 10, 2013

It's now supported, see atom/atom@753b11c for usage example.

Some notes:

  1. The open-url event may be emitted very early, even before the will-finish-launching event, this situation happens when Atom is started to open the URL. And we should also be careful not to open the empty editor in this case.
  2. The open-url event can be emitted for multiple times after application finished launching, just like open-file.
  3. OS X reads the Info.plist to register the URL scheme, so atom:// can work only after you opened the Atom.app for once.

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

No branches or pull requests

3 participants