dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
22k stars 1.77k forks source link

Improve wayland wm detection #2430

Open jcorbin opened 9 months ago

jcorbin commented 9 months ago

Description

On my arch system running the river wm, get_wm wasn't working.

First off, I'd had no reason to install lsof as yet, having only fuser.

Next up the output of fuser was way more than the expected "just a pid": it included a bunch of permission denied entries while enumerating all non-user procs, and also some extra whitespace around the output pid, which was interacting poorly with the defensive quoting inside the sub-shell expansion of $tmp_pid.

TODO