Skip to content

Commit

Permalink
[PR] dylanaraps/neofetch#2034 from subnut - Use /proc/.../cmdline ins…
Browse files Browse the repository at this point in the history
…tead of /proc/.../comm

Upstream PR: dylanaraps/neofetch#2034
Thanks to @subnut

Co-authored-by: Subhaditya Nath <sn03.general@gmail.com>
  • Loading branch information
hykilpikonna and subnut committed Aug 12, 2022
2 parents 086705f + 2fb6f21 commit 664b7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -5564,7 +5564,7 @@ get_process_name() {
;;

"Linux")
name="$(< "/proc/${1:-$PPID}/comm")"
read -rd $'\00' name < "/proc/${1:-$PPID}/cmdline"
;;

*)
Expand Down

0 comments on commit 664b7c2

Please sign in to comment.