You are not logged in.
I have an executable .ahk (autohotkey) file, which I'm trying to make a launchable shortcut of, through the xfce panel Launcher.
This file is opened through ahk_x11-bin, and if I double click the .ahk file itself, outside the Launcher, it does correctly open.
What would be the correct formatting in the Launcher's "Command" field, to open this file?
Simply linking to the file's directory does not seem to work, and I assume it's because it technically runs via ahk_x11.
Thanks!
Last edited by Mana (2025-01-04 15:21:51)
Offline
You can try and call it from a terminal and which ever name works is the one you enter on the "Command" field.
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
You can try and call it from a terminal and which ever name works is the one you enter on the "Command" field.
Calling the .ahk file from terminal just opens the text of the script, it doesn't launch the file, as it has to be opened with ahk_x11. That's the problem.
Offline
First of all make sure the script is executable. Right click>>Properties>>Permissions>>Allow this file to run as a program
or
chmod +x "your script"
If
ahk_x11
allows it to run from the terminal then that's what should be in the "command" line.
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
First of all make sure the script is executable. Right click>>Properties>>Permissions>>Allow this file to run as a program
or
chmod +x "your script"
If
ahk_x11
allows it to run from the terminal then that's what should be in the "command" line.
That would just launch ahkx11, not the .ahk script. I'm trying to create a Launcher shortcut to open the .ahk script with ahkx11.
For instance, if I run the below, the .ahk runs via ahkx11, as intended.
I'm not sure what I need to input as a command for the Launcher to open the .ahk script via ahkx11.
Simply adding the path to the .ahk file as a command, does nothing. I'm curious what the correct command would be.
The .ahk is executable, yes.
Last edited by Mana (2025-01-04 14:26:30)
Offline
I'm not sure what the script should do or how it works exactly but here is installation and usage how-to. It may help.
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
Figured it out. The following Launcher Command worked:
/usr/bin/ahk_x11 "path to .ahk"
Marking the topic as [SOLVED]. Thanks for the help!
Offline
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 551.88 KiB (Peak: 552.73 KiB) ]