Neofetch 缺少一些 Debian11 信息

Neofetch 缺少一些 Debian11 信息

当我安装 Debian 11 及其 Gnome3 及其依赖项时,我安装了 neofetch 来概览我的系统。

奇怪的是,一些信息丢失了,比如我正在使用的 Windows 管理器或我正在使用的 DE。

这是命令的日志neofetch -vv

+ err 'Neofetch command: /usr/bin/neofetch -vv'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Neofetch command: /usr/bin/neofetch -vv
'
+ err 'Neofetch version: 7.1.0'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Neofetch version: 7.1.0
'
+ [[ on == on ]]
+ printf %b '[!]\e[0m Config: Sourced user config.    (/root/.config/neofetch/config.conf)
[!]\e[0m Image: Imagemagick not found, falling back to ascii mode.
[!]\e[0m Info: Couldn'\''t detect DE.
[!]\e[0m Info: Couldn'\''t detect WM.
[!]\e[0m Info: Couldn'\''t detect WM Theme.
[!]\e[0m Info: Couldn'\''t detect Theme.
[!]\e[0m Info: Couldn'\''t detect Icons.
[!]\e[0m Info: Couldn'\''t detect Terminal Font.
[!]\e[0m Neofetch command: /usr/bin/neofetch -vv
[!]\e[0m Neofetch version: 7.1.0
'
[!] Config: Sourced user config.    (/root/.config/neofetch/config.conf)
[!] Image: Imagemagick not found, falling back to ascii mode.
[!] Info: Couldn't detect DE.
[!] Info: Couldn't detect WM.
[!] Info: Couldn't detect WM Theme.
[!] Info: Couldn't detect Theme.
[!] Info: Couldn't detect Icons.
[!] Info: Couldn't detect Terminal Font.
[!] Neofetch command: /usr/bin/neofetch -vv
[!] Neofetch version: 7.1.0
+ [[ off == on ]]
+ return 0
+ printf '\e[?25h\e[?7h'

谷歌搜索问题或日志消息对我没有任何帮助。

答案1

您以 root 身份运行neofetch,这就是为什么它无法确定与您的桌面相关的信息;当用户登录到桌面环境时运行它。

相关内容