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:
@@ -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"
|
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)."
|
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 ─────────────────────────────
|
# ─── Configure Google Chrome as default browser ─────────────────────────────
|
||||||
info "Configuring Google Chrome as default browser..."
|
info "Configuring Google Chrome as default browser..."
|
||||||
ct_exec "
|
ct_exec "
|
||||||
|
|||||||
Reference in New Issue
Block a user