hykilpikonna / hyfetch

πŸ³οΈβ€πŸŒˆ πŸ³οΈβ€βš§οΈ Neofetch with LGBTQ+ pride flags!
MIT License
1.27k stars 96 forks source link

And notice for agreement of the winget command #82

Closed Namorzyny closed 1 year ago

Namorzyny commented 1 year ago

Description

As the title says, neowofetch freezes on Windows 11 [Version 10.0.22621.1105] Use Git for Windows (Version 2.39.1.windows.1)

Using the winget command must agree their agreement. That's an interactive interface so it looks like freezed. Maybe a notice is need?

Neofetch version

7.3.6 (installed from npm)

Screenshot

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2023-01-27 220414

Config file

Not configured yet. Default settings.

Verbose log

Nothing was outputted with -vv.

Namorzyny commented 1 year ago

Seems it take very very long time on counting winget

https://github.com/hykilpikonna/hyfetch/blob/7034721435721ba9983d95052876913ef1fad63a/neofetch#L2027

Namorzyny commented 1 year ago

Ok, I found the solution. The reason is that using the winget command must agree their agreement. That's an interactive interface so it looks like freezed. Maybe a notice is need?

hykilpikonna commented 1 year ago

Thanks for reporting the issue. I'm not familiar with winget, but apparently there are different agreement targets such as source agreements, package agreements, and others. Does --accept-package-agreements --accept-source-agreements argument suppress the agreement prompt?

Or I can try to pipe y to it like yes | winget πŸ€”