[PR] dylanaraps/neofetch#2034 from subnut - Use /proc/.../cmdline instead of /proc/.../comm

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2034
Thanks to @subnut

Co-authored-by: Subhaditya Nath <sn03.general@gmail.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-08-12 19:41:43 -04:00
commit 664b7c2e30

View file

@ -5564,7 +5564,7 @@ get_process_name() {
;;
"Linux")
name="$(< "/proc/${1:-$PPID}/comm")"
read -rd $'\00' name < "/proc/${1:-$PPID}/cmdline"
;;
*)