From 2fb6f214eb9b1c001359fdf144dc20e47190a5ed Mon Sep 17 00:00:00 2001 From: Subhaditya Nath Date: Sat, 22 Jan 2022 18:53:02 +0530 Subject: [PATCH] Use /proc/.../cmdline instead of /proc/.../comm /proc/.../comm is limited to 16 bytes. So, long terminal names like io.elementary.terminal (default terminal for Elementary OS) gets truncated to 15 characters. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 48b96d21..fea3b6b0 100755 --- a/neofetch +++ b/neofetch @@ -4943,7 +4943,7 @@ get_process_name() { ;; "Linux") - name="$(< "/proc/${1:-$PPID}/comm")" + read -rd $'\00' name < "/proc/${1:-$PPID}/cmdline" ;; *)