neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Windows 11 Install issues.

Open kaboddy opened this issue 2 years ago • 8 comments

Issues with install. I'm using OneDrive and redirecting the 'Documents' folder... Perhaps that's causing issues? There is a local Documents folder still as well.

2022-04-18 09_28_05-GitHub - dylanaraps_neofetch_ 🖼️ A command-line system information tool written

Path looks OK in cmd (scoop location in there). I also restarted the Terminal just in case the path wasn't updated.

Thanks!

kaboddy avatar Apr 18 '22 13:04 kaboddy

I will also experience a similar problem after installation, I can not find the cause of the problem, I hope this will fix in the future since earlier this program worked fine

zil1337 avatar Apr 20 '22 20:04 zil1337

Same issue here, Win11 > The system cannot find the path specified

bledavik avatar Apr 22 '22 14:04 bledavik

Think I found the mistake... in the neofetch.cmd located in the 'shims' folder, there's a path to 'bash' that doesn't exist on my scoop install: Here's the line: @"C:\Users\kboddy\scoop\bin\bash.exe" "C:\Users\kboddy\scoop\apps\neofetch\current\neofetch" %*

No bash.exe there... no bin folder either. There is this though from the git install: C:\Users\kboddy\scoop\apps\git\current\bin\bash.exe

I updated the path and it works!!!

kaboddy avatar Apr 22 '22 16:04 kaboddy

@kaboddy That fixed mine as well, good find! Thank you!

bledavik avatar Apr 22 '22 17:04 bledavik

Yeah... Not sure where or why the windows installer would look for that path unless something changed with the git install.

I've got the install on another computer (Windows as well) and the files are totally different!

kaboddy avatar Apr 22 '22 17:04 kaboddy

@kaboddy Your fix helped me but after it appeared another mistake, the program simply does not work Screenshot_5 Screenshot_6

zil1337 avatar Apr 24 '22 15:04 zil1337

Not sure what to tell you. What's your neofetch.cmd looking like?

kaboddy avatar Apr 25 '22 12:04 kaboddy

The problem in the cuurent version is that neofetch.ps1 contains this:

& $(join-path $Env:Programfiles 'Git\bin\bash.exe') $(join-path $psscriptroot 'neofetch') @args

which is just a rank assumption which results in C:\Program Files\Git\bin\bash.exe. My git is not in C:\Program Files\or Git directories. These days many people don't want apps on their smaller SSD C: drives and, whatever the cirumstances, paths shouldn't be assumed. neofetch needs to ask or detect the correct path.

The workaround is to replace $Env:Programfiles and Git\ in Git\bin\bash.exe with the right locations or replace the entire $(join-path $Env:Programfiles 'Git\bin\bash.exe') invocation with your path to bash. Something like & 'path/to/bash.exe' $(join-path $psscriptroot 'neofetch') @args.

GrabCAD-Gary avatar Dec 11 '23 11:12 GrabCAD-Gary