Auto Start is very unstable #303

Closed
opened 2026-01-05 14:49:36 +01:00 by adam · 4 comments
Owner

Originally created by @awptechnologies on GitHub (Feb 25, 2024).

I am on the latest release and auto start on login is very unstable. Sometimes it works others it doesn't. I am using a .bat script in the shell:startup folder that then triggers a .ps1 script starting komorebi. Every time i login i see the terminal pop up and run the command but even with that sometimes the application doesn't work and i have to still start it manually. I don't believe there is an error with my script because it works half the time. I also find that sometimes the program exits by itself. For instance if i force my pc to stay awake with power-toys after an hour or so i come back to windows not snapping the way they should and only a reboot will fix it. Love the program as it is very useful for someone that bounces back and forth to linux. Hoping the small issues are worked out so i can recommend the program to others in my family that aren't so tech savvy.

Originally created by @awptechnologies on GitHub (Feb 25, 2024). I am on the latest release and auto start on login is very unstable. Sometimes it works others it doesn't. I am using a .bat script in the shell:startup folder that then triggers a .ps1 script starting komorebi. Every time i login i see the terminal pop up and run the command but even with that sometimes the application doesn't work and i have to still start it manually. I don't believe there is an error with my script because it works half the time. I also find that sometimes the program exits by itself. For instance if i force my pc to stay awake with power-toys after an hour or so i come back to windows not snapping the way they should and only a reboot will fix it. Love the program as it is very useful for someone that bounces back and forth to linux. Hoping the small issues are worked out so i can recommend the program to others in my family that aren't so tech savvy.
adam added the bug label 2026-01-05 14:49:36 +01:00
adam closed this issue 2026-01-05 14:49:36 +01:00
Author
Owner

@azinsharaf commented on GitHub (Feb 25, 2024):

are you using static configuration file?
komorebic enable-autostart command (check its params) creates a shortcut (not a ps1) with the correct command.

@azinsharaf commented on GitHub (Feb 25, 2024): are you using static configuration file? komorebic enable-autostart command (check its params) creates a shortcut (not a ps1) with the correct command.
Author
Owner

@awptechnologies commented on GitHub (Feb 26, 2024):

how do i create a shortcut? and yes i use static config.
This is my .bat as well as my ps1

.bat
PowerShell -ExecutionPolicy RemoteSigned -File "C:\Users\AWP\CONFIG\Komorebie\Komorebi.ps1"

.ps1
Start-Process 'komorebi.exe' -ArgumentList '--config="C:\Users\AWP\komorebi.json"' -WindowStyle hidden

if (!(Get-Process whkd -ErrorAction SilentlyContinue))
{
Start-Process whkd -WindowStyle hidden
}

@awptechnologies commented on GitHub (Feb 26, 2024): how do i create a shortcut? and yes i use static config. This is my .bat as well as my ps1 .bat PowerShell -ExecutionPolicy RemoteSigned -File "C:\Users\AWP\CONFIG\Komorebie\Komorebi.ps1" .ps1 Start-Process 'komorebi.exe' -ArgumentList '--config="C:\Users\AWP\komorebi.json"' -WindowStyle hidden if (!(Get-Process whkd -ErrorAction SilentlyContinue)) { Start-Process whkd -WindowStyle hidden }
Author
Owner

@azinsharaf commented on GitHub (Feb 26, 2024):

i haven't tried the power-shell and batch file for autostart but the method below should work well with the latest release.

https://lgug2z.github.io/komorebi/cli/enable-autostart.html

@azinsharaf commented on GitHub (Feb 26, 2024): i haven't tried the power-shell and batch file for autostart but the method below should work well with the latest release. https://lgug2z.github.io/komorebi/cli/enable-autostart.html
Author
Owner

@LGUG2Z commented on GitHub (May 12, 2024):

Closing this unless there are specific issues with the enable-autostart command as it's not feasible to debug different custom autostart approaches here

@LGUG2Z commented on GitHub (May 12, 2024): Closing this unless there are specific issues with the `enable-autostart` command as it's not feasible to debug different custom autostart approaches here
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#303