在 CentOS 上查看 Compton(窗口合成器)日志,取决于你是如何启动它的。下面按常见情况说明。
ps -ef | grep compton
或
pgrep -a compton
如果你是在终端直接运行:
compton
或
compton -b
compton --log-level debug
日志会直接输出到当前终端。
compton -b --log-level debug --log-file /tmp/compton.log
然后查看日志:
cat /tmp/compton.log
很多桌面环境用 systemd 管理 Compton:
systemctl --user status compton
查看日志:
journalctl --user -u compton -f
(如 .xinitrc、.xprofile、autostart)
cat ~/.xinitrc
cat ~/.xprofile
ls ~/.config/autostart/
如果是 autostart:
cat ~/.config/autostart/compton.desktop
建议修改为带日志的启动方式:
Exec=compton --log-level debug --log-file /tmp/compton.log
Failed to load backendGLX errorAnother compositor is runningConfiguration file errorcomptonwhich picom
如果是 picom:
picom --log-level debug
journalctl --user -u picom
如果你愿意,可以告诉我:
我可以给你更精确的命令。