woodruffw / screenfetch-c

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

MSYS2 package count #26

Closed darealshinji closed 8 years ago

woodruffw commented 8 years ago

Since MSYS uses pacman, it's probably better to do the Windows equivalent of glob(3) on wherever MSYS keeps the pacman local cache (/var/lib/pacman/local/ on *nix). That should be faster than the fork/exec cycle needed by popen.

woodruffw commented 8 years ago

Looks like FindFirstFile is the standard way to do this with Win32.

Edit: That looks like a massive pain to use, so ignore that. I'm still looking for other options, but it looks like Win32 doesn't have anything directly comparable to glob(3). If that holds true, I'll merge this as-is.

darealshinji commented 8 years ago

glob(3) may still be supported by Msys2 and Cygwin.

woodruffw commented 8 years ago

In that case, go with that.

darealshinji commented 8 years ago

Did a test and both Cygwin and MSYS2 provide glob(3). I'll use that then.

darealshinji commented 8 years ago

I've rewritten the package detection.

woodruffw commented 8 years ago

Merged, thanks!