mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]?: Unable to reliably autostart on windows 11 #218
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skewballfox on GitHub (Jun 3, 2023).
Describe the bug
This may be user error as I'm pretty new to windows. I'm unable to start komorebi at login either via task scheduler or a batch file in the autostart directory
To Reproduce
via task scheduler
Steps to reproduce the behavior:
via autostart:
create a bat file that starts komorebi with the above arguments, or add komorebi to an existing one. I've also tried creating a powershell file and running powershell via task scheduler at login
Expected behavior
komorebi starts and manages windows created after launch
k
Operating System
komorebic checkOutputkomorebi state tends to output the following
Additional context
I'm using ahk v2, and I have the files pointed to in the readme in both the default location and ~/.config/komorebi. I've set the environment variables via the windows system gui rather than powershell profile, mainly so they would be detected via task scheduler and the batch file. I don't think this is an issue with the ahk files themselves as I can manually launch komorebic.exe from powershell without issue.
if I open task scheduler, komorebi is running in the background, but AHK is not. here is a log from the lastest
if I try to manually trigger the komorebi.ahk, komorebic starts, AHK starts, then komorebic and komorebi disappear (I'm assuming killed).
I can launch komorebic manually from powershell and it works fine, this behavior seems to occur via the multiple methods I've attempted to have it launched automatically at login
@LGUG2Z commented on GitHub (Jun 4, 2023):
Autostarting is not officially supported; some users have their own solutions, which may become more stable after #427 is completed.
@skewballfox commented on GitHub (Jun 6, 2023):
I can make this into a separate issue if you like, but I think I realized part of the issue is unrelated to autostarting. It seems that komorebic, even when launched from the commandline with the env variable
KOMOREBI_AHK_EXEset doesn't seem to launch the ahk config file.I'm using AHK v2, with the script referenced in the readme. I don't have v1 installed, and as mentioned above, it seems komorebi is finding the script just fine.
@LGUG2Z commented on GitHub (Jun 13, 2023):
For those of you that are comfortable reading commit messages and code, please check out: https://github.com/LGUG2Z/komorebi/compare/feature/static-config
You can either compile this branch from source or grab the prebuilt binaries from the GitHub Actions job of the latest commit.
I've started working on the feature which allows komorebi to read in a static JSON configuration file, which can be started as
komorebic start -c C:\Users\YourUser\Path\To\config.jsonIt would be good if people could report back whether or not this improves reliability at startup.
@mtanda commented on GitHub (Jul 6, 2023):
https://github.com/LGUG2Z/komorebi/pull/483 may fix a part of the issue.
@zombie-bear commented on GitHub (Jul 24, 2023):
i have it working at startup whit : "komorebic start -c $Env:USERPROFILE\komorebi.json --whkd"
(no issue so far)
@LGUG2Z commented on GitHub (Jul 24, 2023):
If some other people could confirm this maybe we can add in a komorebic command for the next release that installs a standardized startup hook. 🤞
@LGUG2Z commented on GitHub (Aug 9, 2023):
I have verified the following method as working on a W11 VM:
shell:startupto bring up the Startup folder in ExplorerC:\Users\User\scoop\apps\komorebi\current\komorebic.exe start --config C:\Users\User\komorebi.json --whkdI'll be closing this and related issues, and working towards commands that automate the creation of this shortcut file for autostarting komorebi on boot.