Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#2,434 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
c

调研方向

首先定位 winget 软件包检测的入口点,并检查软件包列表的获取方式。将 issue 中描述的三个 Windows 卸载注册表路径作为调查目标;完成的标准是能够可靠地检测 winget 软件包,而不依赖缓慢且不可靠的 list 命令。

由索引模型根据 Issue 内容生成。

描述

bug
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
主要语言
C
星标
24.7k
派生
895
平均合并
22 小时 43 分钟
30 天内合并 PR
20

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

fastfetch-cli/fastfetch 的其他 Issue

查看 fastfetch-cli/fastfetch 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。