Skip to content

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

Description

@cerealdevv

Read the FAQ first

  • 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

System information

not relevant, winget is not in all.jsonc

Features built-in

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions