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

Actions not working #4

Closed
david-pivonka opened this issue Jul 31, 2017 · 3 comments
Closed

Actions not working #4

david-pivonka opened this issue Jul 31, 2017 · 3 comments

Comments

@david-pivonka
Copy link

Hi, I'm here again.
I'm using this json
[ { "type": "button", "label": "Exposé", "clickDispatchAction": "expose:toggle" } ]
and it always shows this popup:
obrazek aplikace zpravy 2373697570
but as you can see, expose package is loaded and activated.

@inakineitor
Copy link
Owner

There are four possible states for a package.

  • The first state indicates that the package is installed.
  • The second state indicates that the package is enabled.
  • The third state indicates that the package is loaded into the enviroment.
  • The forth state indicates that the package is activated.

touch-bar-utility first checks if the package is installed and then checks if the package is enabled. No popup has appeard, so Exposé has been detected.

The error you see ocurs if the package is not loaded OR not activated.

I checked the Exposé github repository and it turns out, that you have to manually activate the package by issuing the expose:toggle command.

So every time you open Atom, you have up to go to the Packages tab and manually toggle Exposé. After you have done that, the command should be able to be issued by the touch bar.

@apemsel
Copy link

apemsel commented Aug 4, 2017

I have a similar problem with built-in commands like command-palette:toggle. They work after restarting touch-bar, but not after restarting Atom.

@inakineitor
Copy link
Owner

The packages' states are reset when Atom relaunches. The installed and enabled states remain active, but the activated state doesn't. You have to manually toggle one time command-palette through the Packages - command-palette - toggle to activate it every time you start Atom before you can use it with the TouchBar. Some packages activated automatically, but others must be toggle one before getting activated. Sadly that is nothing I can do as I cannot remotely activate other packages from mine.

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

3 participants