Ubuntu下Compton错误的定位与修复指南
一、快速定位
二、常见错误与对应修复
三、配置文件与最小可用示例
backend = "glx";
vsync = true;
shadow = false;
fading = false;
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-leader = true;
四、使用 Systemd 管理时的正确姿势
[Unit]
Description=Compton Window Composer
After=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/compton --config /home/你的用户名/.config/compton.conf --log-level debug
Restart=on-failure
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/你的用户名/.Xauthority
[Install]
WantedBy=graphical-session.target
五、仍未解决时的有效求助方式