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

Call Dash without activating it #14

Closed
Kapeli opened this issue Mar 15, 2015 · 3 comments
Closed

Call Dash without activating it #14

Kapeli opened this issue Mar 15, 2015 · 3 comments

Comments

@Kapeli
Copy link
Contributor

Kapeli commented Mar 15, 2015

atom-dash calls Dash by opening a dash-plugin:// URL. The problem is that the system forces Dash to become active when this URL is opened.

Currently, this is not an issue. However, a future update of Dash will add support for iOS remotes. While an iOS remote is connected, extensions are redirected to it directly and Dash on OS X is not shown at all. Unfortunately there's no way for me to prevent the system from activating Dash when you open the dash-plugin:// URL.

You currently open Dash by running:

shell.openExternal(@createLink(string, language)) 

I have no idea what this does behind the scenes, but it should be the equivalent of this Terminal command:

open dash-plugin://query

Instead of that, you should perform the equivalent of this Terminal command:

open -g dash-plugin://query

The -g causes Dash to not get activated if it does not want to and the user experience is a lot better as the active app (Atom) does not lose focus anymore. When you make the change, please make sure to test whether or not you need to escape special symbols (e.g. $).

It is safe to make this change as soon as possible (no need to wait for a Dash update), as the current version of Dash already knows to activate itself if it needs to.

@blakeembrey
Copy link
Owner

@Kapeli Thanks for the update, I'll fix this ASAP 👍

@blakeembrey
Copy link
Owner

Patched with 8a3152a

@Kapeli
Copy link
Contributor Author

Kapeli commented Mar 15, 2015

Thank you! 👍

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

No branches or pull requests

2 participants