andresgongora / synth-shell-greeter

A system status report and your personal ASCII-art logo for your terminal sessions
GNU General Public License v3.0
14 stars 15 forks source link

systemd detection failed on WSL2 Distrod #37

Open pendenaor opened 1 year ago

pendenaor commented 1 year ago

Describe the bug On WSL2 Distrod+Archlinux, systemd is not detected.

To Reproduce Extract systemd validation routine from synth-shell-greeter.sh, function printInfoSystemctl

$ pidof systemd
<nothing>

Expected behavior Distrod is a meta-distro that embed systemd, it should be detected.

Workaround replace if [ -z "$(pidof systemd)" ]; then by if [ ! -d "/run/systemd/system/" ];then see Notes from https://www.freedesktop.org/software/systemd/man/sd_booted.html

andresgongora commented 1 year ago

Hi @pendenaor. Thanks for working on this bug. If you want, I can test it and implement your suggested change. But you are more than welcome to pull-request your change and become a contributor of synth-shell-greeter, if you like :)