Open melMass opened 6 months ago
I have this same issue, reported here. https://github.com/LGUG2Z/komorebi/issues/645 As a workaround, I added a link to the autohotkey script to the startup folder to start it independently. Someone suggested making sure the executable name is autohotkey.exe, and that it's in your path environment variable. IDK, didn't fix it for me, I have ahk installed through scoop which puts everything in the path.
I'm not seeing anything obvious in the code that would cause this.
start
tries to locate the ahk file using HOME_DIR
:
https://github.com/LGUG2Z/komorebi/blob/5e714cafab61a5fd8a9bb11adf14504ffe609135/komorebic/src/main.rs#L1855
HOME_DIR
respects the KOMOREBI_CONFIG_HOME
environment variable:
https://github.com/LGUG2Z/komorebi/blob/5e714cafab61a5fd8a9bb11adf14504ffe609135/komorebic/src/main.rs#L62
enable-autostart
constructs a shortcut file which calls the start
command with the --ahk
flag:
https://github.com/LGUG2Z/komorebi/blob/5e714cafab61a5fd8a9bb11adf14504ffe609135/komorebic/src/main.rs#L1302
... which respects the custom config home env var, etc.
Maybe someone else can take a look and see if I'm missing something here?
I have the same problem, I manually compiled komorebi.
I also tried placing a shortcut to the autohotkey script, and adding a line in the autohotkey script that autostarts komorebi:
RunWait("komorebic.exe start", ,"Hide")
What I found was that komorebi did startup, but it did not use the komorebi.json or applications.yaml, so application windows weren't being placed correctly and configurations like window borders didn't display. and if I ran:
RunWait("komorebic.exe start --ahk", ,"Hide")
It would just give me an error saying komorebi.ahk not found
Same thing here, I second this issue, setting a custom config home, doesn't stop the client from looking at the wrong place, Either we have to find a way to specify where to look for the ahk script, or find a way to set an enviroment variable for Command Prompt.
Describe the bug When using the
--ahk
flag of autostart I'm now getting this errorTbh I'm not sure of what komorebi expects, I did copy the lib there to be sure too yet it still errors out
Expected behavior A clearer error.
Screenshots and Videos
Operating System Provide the output of
systeminfo | grep "^OS Name\|^OS Version"
For example:
komorebic check
OutputAdditional Context
The content of my AHK script: