当我安装Debian 11并使用它时,我安装了Gnome3及其依赖项,以便对我的系统进行概述。
奇怪的是,有些信息丢失了,比如我使用的是什么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'在谷歌上搜索这个问题或日志信息对我一点帮助都没有。
发布于 2021-12-16 15:30:10
您将neofetch作为根用户运行,这就是它无法确定与桌面相关的信息的原因;当用户登录到桌面环境时运行它。
https://unix.stackexchange.com/questions/682739
复制相似问题