mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: "Error: program not found" when running enable-autostart #299
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 @psi00 on GitHub (Feb 16, 2024).
Describe the bug
Whenever attempting to enable Komorebi's autostart through
komorebic enable-autostartand providing the needed config file (--config C:\Users\James\komorebi.jsonis mine), Komorebi throws an error saying that the 'program was not found' and shows what seems to be a directory.To Reproduce
Steps to reproduce the behavior:
komorebic enable-autostartand provide your config file directoryExpected behavior
I expected Komorebi to enable itself to auto-start upon receiving said command.
Screenshots and Videos
Operating System
komorebic checkOutputAdditional context
I also tried the command with
C:\Users\James\.config\komorebi\komorebi.generated.ps1incase I had the wrong file, but that created the same result.@LGUG2Z commented on GitHub (Feb 16, 2024):
Looks like you may be running an older version of komorebi here. Can you check both binaries with the
--versionflag?0.1.21 is now available both on WinGet and Scoop so if you're on a version earlier than that on either of the binaries this should be fixed with a quick upgrade to the latest version!
@psi00 commented on GitHub (Feb 16, 2024):
Hello, thanks for the quick reply! Komorebi was on version 0.1.19 beforehand. After updating to 0.1.21, the same issue is still arising. Perhaps the location may be something to do with it? But I don't know, I'm not the guy who wrote the program lol.
@LGUG2Z commented on GitHub (Feb 16, 2024):
ef61239580/komorebic/src/main.rs (L1119)It looks like the program that can't be found here is "powershell.exe" 🤔
Are you able to run "powershell" successfully as a command from a plain old Command Prompt? 👀
@psi00 commented on GitHub (Feb 16, 2024):
Bingo!
C:\Users\James>powershell'powershell' is not recognized as an internal or external command, operable program or batch file.@LGUG2Z commented on GitHub (Feb 16, 2024):
This is a little beyond the scope of the software as it's a system environment configuration issue, but you should be able to ensure that the PowerShell binary is available on your system PATH by following these instructions: https://confluence.atlassian.com/bamkb/powershell-is-not-recognized-as-an-internal-or-external-command-1095246216.html#:~:text=Search%20for%20%22environment%20variables%22%20in,folder%20where%20PowerShell%20is%20located.
@psi00 commented on GitHub (Feb 16, 2024):
The above didn't work for me - however, setting the path to %SYSTEMROOT%\System32\WindowsPowerShell\v1.0> did work. Now Komorebi autostarts with no issues when I boot up the system. Thanks for your help! :)