Skip to content

Commit 664b7c2

Browse files
hykilpikonnasubnut
andcommitted
[PR] dylanaraps/neofetch#2034 from subnut - Use /proc/.../cmdline instead of /proc/.../comm
Upstream PR: dylanaraps/neofetch#2034 Thanks to @subnut Co-authored-by: Subhaditya Nath <sn03.general@gmail.com>
2 parents 086705f + 2fb6f21 commit 664b7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neofetch

+1-1
Original file line numberDiff line numberDiff line change
@@ -5564,7 +5564,7 @@ get_process_name() {
55645564
;;
55655565

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

55705570
*)

0 commit comments

Comments
 (0)