[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:
commit
664b7c2e30
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -5564,7 +5564,7 @@ get_process_name() {
|
|||
;;
|
||||
|
||||
"Linux")
|
||||
name="$(< "/proc/${1:-$PPID}/comm")"
|
||||
read -rd $'\00' name < "/proc/${1:-$PPID}/cmdline"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue