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