Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-01-04 08:32:48

Mana
Member
Registered: 2025-01-02
Posts: 11
LinuxFirefox 133.0

[SOLVED] Launcher, Open Program Specific File?

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

#2 2025-01-04 11:27:04

eriefisher
Moderator
From: ON, Canada
Registered: 2008-10-25
Posts: 588
LinuxFirefox 133.0

Re: [SOLVED] Launcher, Open Program Specific File?

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

#3 2025-01-04 12:13:13

Mana
Member
Registered: 2025-01-02
Posts: 11
LinuxFirefox 133.0

Re: [SOLVED] Launcher, Open Program Specific File?

eriefisher wrote:

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

#4 2025-01-04 13:30:44

eriefisher
Moderator
From: ON, Canada
Registered: 2008-10-25
Posts: 588
LinuxFirefox 133.0

Re: [SOLVED] Launcher, Open Program Specific File?

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

#5 2025-01-04 14:25:45

Mana
Member
Registered: 2025-01-02
Posts: 11
LinuxFirefox 133.0

Re: [SOLVED] Launcher, Open Program Specific File?

eriefisher wrote:

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.
bbuzyiG.png

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

#6 2025-01-04 14:44:32

eriefisher
Moderator
From: ON, Canada
Registered: 2008-10-25
Posts: 588
LinuxFirefox 133.0

Re: [SOLVED] Launcher, Open Program Specific File?

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.

https://github.com/phil294/AHK_X11


Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#7 2025-01-04 15:21:23

Mana
Member
Registered: 2025-01-02
Posts: 11
LinuxFirefox 133.0

Re: [SOLVED] Launcher, Open Program Specific File?

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

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 545.22 KiB (Peak: 546.06 KiB) ]