fastfetch-cli / fastfetch-cli/fastfetch

[BUG] Winget Detection does not work, however it is still listed in fastfetch -h packages-format

Open
#2,434 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
24.6k
Forks
890
Avg merge
1d 42m
Merged PRs (30d)
17

Description

### Read the FAQ first

- [x] I have checked the FAQ but the issue is not covered

### Description

Winget Detection does not work. this is likely due to winget being overall a very slow package manager.

winget's list command is super slow and outputs unreliable results, you cannot rely on that.

in my fetch, i found a solution, winget looks in these registry keys for its packages:
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*",
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*",
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"
these registry keys seem to be overall more reliable than winget's list command.

note: this includes apps NOT installed through winget directly, however theyre technically installed through winget if they are there
note2: while they are not always gotten through winget directly, winget's list command also shows them, and also sometimes has weird formatting.

### Version used

fastfetch 2.65.2 (x86_64)

### Bug prevalence

Always

### Regression

Not sure

### Installation

Package manager

### Package manager

winget

### Screenshots

_No response_

### Configuration

```jsonc

```

### System information

```jsonc
not relevant, winget is not in all.jsonc
```

### Features built-in

```text
threads
vulkan
imagemagick7
chafa
zlib
opencl
libzfs
Embedded wcwidth
WinRT headers
Windows 8.1 Compatibility
Lua 5.5
QuickJS 0.15.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.