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

Accessibility API Disabled #164

Open
orangejuice5519 opened this issue Nov 1, 2024 · 1 comment
Open

Accessibility API Disabled #164

orangejuice5519 opened this issue Nov 1, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@orangejuice5519
Copy link

What happened?

On Better Globe Key installation, when running betterglobekey,

hook_run [1284]: Accessibility API is disabled!
Failed to enable access for assistive devices. (0X40)

is returned and Better Globe Key isn't found in accessibility settings.

What else do we need to know?
OS: 15.1 (24B83)
M2 MacBook Air

2024-11-01T19:51:35.642-0400	INFO	supplied	{"type": "*cobra.Command", "error": null}
2024-11-01T19:51:35.642-0400	INFO	provided	{"constructor": "github.com/Serpentiel/betterglobekey/internal/provide.Viper()", "type": "*viper.Viper"}
2024-11-01T19:51:35.643-0400	INFO	provided	{"constructor": "github.com/Serpentiel/betterglobekey/internal/provide.Logger()", "type": "logger.Logger"}
2024-11-01T19:51:35.643-0400	INFO	provided	{"constructor": "github.com/Serpentiel/betterglobekey/internal/pkg/eventhandler.NewEventHandler()", "type": "*eventhandler.EventHandler"}
2024-11-01T19:51:35.643-0400	INFO	provided	{"constructor": "go.uber.org/fx.New.func1()", "type": "fx.Lifecycle"}
2024-11-01T19:51:35.643-0400	INFO	provided	{"constructor": "go.uber.org/fx.(*App).shutdowner-fm()", "type": "fx.Shutdowner"}
2024-11-01T19:51:35.643-0400	INFO	provided	{"constructor": "go.uber.org/fx.(*App).dotGraph-fm()", "type": "fx.DotGraph"}
2024-11-01T19:51:35.643-0400	INFO	initialized custom fxevent.Logger	{"function": "github.com/Serpentiel/betterglobekey/internal/provide.FxeventLogger()"}
2024-11-01T19:51:35.643-0400	INFO	invoking	{"function": "github.com/Serpentiel/betterglobekey/cmd.init.func2.1()"}
2024-11-01T19:51:35.643-0400	INFO	OnStart hook executing	{"callee": "github.com/Serpentiel/betterglobekey/internal/provide.Logger.func1()", "caller": "github.com/Serpentiel/betterglobekey/internal/provide.Logger"}
2024-11-01T19:51:35.643-0400	INFO	OnStart hook executed	{"callee": "github.com/Serpentiel/betterglobekey/internal/provide.Logger.func1()", "caller": "github.com/Serpentiel/betterglobekey/internal/provide.Logger", "runtime": "18.375µs"}
2024-11-01T19:51:35.643-0400	INFO	OnStart hook executing	{"callee": "github.com/Serpentiel/betterglobekey/internal/pkg/eventhandler.NewEventHandler.func1()", "caller": "github.com/Serpentiel/betterglobekey/internal/pkg/eventhandler.NewEventHandler"}
2024-11-01T19:51:35.694-0400	INFO	OnStart hook executed	{"callee": "github.com/Serpentiel/betterglobekey/internal/pkg/eventhandler.NewEventHandler.func1()", "caller": "github.com/Serpentiel/betterglobekey/internal/pkg/eventhandler.NewEventHandler", "runtime": "50.911959ms"}
2024-11-01T19:51:35.694-0400	INFO	OnStart hook executing	{"callee": "github.com/Serpentiel/betterglobekey/cmd.init.func2.1.1()", "caller": "github.com/Serpentiel/betterglobekey/cmd.init.func2.1"}
2024-11-01T19:51:35.694-0400	INFO	OnStart hook executed	{"callee": "github.com/Serpentiel/betterglobekey/cmd.init.func2.1.1()", "caller": "github.com/Serpentiel/betterglobekey/cmd.init.func2.1", "runtime": "5.875µs"}
2024-11-01T19:51:35.694-0400	INFO	event handler has been initialized
2024-11-01T19:51:35.694-0400	INFO	started
hook_run [1284]: Accessibility API is disabled!
Failed to enable access for assistive devices. (0X40)
@orangejuice5519 orangejuice5519 added the bug Something isn't working label Nov 1, 2024
@Serpentiel
Copy link
Owner

Hey, @orangejuice5519! 👋

Thank you for raising the issue. Could you please confirm if you have checked it under System Settings > Privacy & Security > Accessibility, and not elsewhere?

Screenshot 2024-11-02 at 22 27 54

The tool is supposed to request permissions when it has been installed and started first. Please try to run brew services restart betterglobekey in your terminal and see if this would make it to request the permissions.

If it didn't help, and If you still can't find it there, you can manually add it to the list by pressing the + button and by specifying the binary file of the tool in the pop-up window. To find the path, run which betterglobekey in your terminal, but probably it sits at its default path at /opt/homebrew/bin/betterglobekey.

Please let me know if this helped you, thank you!

@Serpentiel Serpentiel self-assigned this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants