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

Script sometimes fails to reload, and cannot be launched from another script #53

Closed
davidhfo opened this issue Aug 1, 2023 · 1 comment

Comments

@davidhfo
Copy link

davidhfo commented Aug 1, 2023

Sometimes when the hotkey's tray icon menu option for reloading the script is clicked, the script fails to reload. It will just close but not restart.

I know that doesn't say much, but if there's data I can get to help debug, let me know.

Possibly related:
Using a hotkey in a script to load another script via
Run, bash -c '/path-to-app/ahk_x11-1.0.1-x86_64.AppImage "/path-to-script/script.ahk"'
does not work.

But using the same hotkey to instead do something like Run, bash -c kate works just fine.

The following from a terminal also works fine:
/path-to-app/ahk_x11-1.0.1-x86_64.AppImage "/path-to-script/script.ahk"

Minor issue for me personally, because I don't reload often, and can easily start it up again from the command line.

This isn't an issue I experienced in 0.5.1.

Solus 4.4, Plasma edition

@phil294 phil294 closed this as completed in 479ba61 Aug 9, 2023
@phil294
Copy link
Owner

phil294 commented Aug 9, 2023

this was actually due to the other issue of yours: The window flashing set the focus to the non-existing window ID 0 and then any subsequent startups of ahk_x11 immediately crashed because they couldn't register hotkeys on 0.

Apart from the solution in #51, I also fixed this by redirecting 0-grabs to the root window instead.

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