[FEAT] Adding the "installed apps" count

Offen
#1,609 8 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
c, macos

Rechercherichtung

Das Issue nennt Fastfetchs Command- und Packages-Module und stellt einen macOS-Zählbefehl bereit. Beginne damit, diese bestehenden Ansätze zu vergleichen und zu bestimmen, wie installierte Anwendungen unter macOS und Windows gezählt werden sollten; abgeschlossen ist die Aufgabe, wenn Fastfetch auf beiden Plattformen eine native, benutzerfreundliche Anzahl der Anwendungen bereitstellt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement
Description

Hi!
I believe it would be beneficial to include the number of apps installed on macOS and Windows in Fastfetch.
This could be implemented through a new module (e.g., Apps or Applications) or as an option in the custom format within Packages.

Motivation

In my personal use case, the Command module is sufficient for retrieving the number of installed apps.
However, I think that many macOS and Windows users install applications instead of packages (or a combination of both) but they may not know how to write that specific command.
Therefore, it might be more user-friendly to incorporate this functionality as a native feature in Fastfetch.

Additional context

If useful, here is my configuration with the command I use to retrieve the number of apps on macOS. The command I use simply counts the apps displayed in Spotlight / Apps:

{
  "type": "command",
  "key": "Apps",
  "text": "mdfind \"kMDItemContentType == 'com.apple.application-bundle'\" -onlyin /Applications -onlyin ~/Applications -onlyin /System/Applications | wc -l | xargs"
},

I still haven’t found a polished command for Windows but I can share my attempts if needed.

Thank you for considering my suggestion.

Edit: I’ve updated the command above to the "final" version. If you’re interested in previous iterations or alternative approaches, please refer to the comments below.

Vorherrschende Sprache
C
Sterne
25.4k
Forks
947
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
21

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fastfetch-cli/fastfetch

Alle Issues in fastfetch-cli/fastfetch

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.