Disable LXQt power management and screensaver in LXC

These components crash in an LXC container since there's no real hardware
power management. Disable them via autostart Hidden=true entries.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
adadrag
2026-03-15 12:55:21 +00:00
parent 8826a434df
commit bb2face70d

View File

@@ -258,6 +258,27 @@ chmod +x /root/.config/tigervnc/xstartup"
ct_exec "sed -i \"s/UI.initSetting('resize', 'off')/UI.initSetting('resize', 'scale')/\" /usr/share/novnc/app/ui.js"
ok "VNC configured (auto-scaling enabled)."
# ─── Disable LXC-incompatible LXQt components ───────────────────────────────
info "Disabling LXC-incompatible LXQt components..."
ct_exec "
mkdir -p /root/.config/autostart
# Disable power management (no hardware in LXC)
cat > /root/.config/autostart/lxqt-powermanagement.desktop << 'NOAUTO'
[Desktop Entry]
Type=Application
Name=LXQt Power Management
Hidden=true
NOAUTO
# Disable screen saver (not needed in VNC)
cat > /root/.config/autostart/lxqt-xscreensaver-autostart.desktop << 'NOAUTO'
[Desktop Entry]
Type=Application
Name=LXQt Screen Saver
Hidden=true
NOAUTO
"
ok "LXC-incompatible components disabled."
# ─── Configure Google Chrome as default browser ─────────────────────────────
info "Configuring Google Chrome as default browser..."
ct_exec "