woodruffw / screenfetch-c

A rewrite of screenFetch in C.
MIT License
73 stars 17 forks source link

Identify the package manager #22

Open pizzamaker opened 8 years ago

pizzamaker commented 8 years ago

It would be useful to have the package manager identified. Many users take pride in their choice for pkg mgmt :)

joedf commented 8 years ago

Cool idea :+1: However, I think it is possible to have multiple package manager, am I correct?

pizzamaker commented 8 years ago

Yes! Maybe they can be listed alongside each other, with the main one showing up first? The main one could be determined as the manager with the most packages installed on the system, perhaps.

woodruffw commented 8 years ago

The package manager is identified when doing package counts, but actually printing out its name isn't done. If you want something like this, please feel free to open a PR (detect_pkgs in src/plat/{linux,bsd,darwin,sun,win32}/detect.c is a good place to start).

pizzamaker commented 8 years ago

I'm not actually a programmer, but I'm glad if anyone else offers to work on it :)

cuberobenicio32 commented 3 years ago

I'll try to work on it :-)