From e8f345ff77b8d21d294d9b7c6e04855ebd3ee10c Mon Sep 17 00:00:00 2001 From: acehighdan Date: Sun, 12 Apr 2026 03:04:27 -0700 Subject: [PATCH] Sync autostart system configuration with OpenRGB settings on startup If the autostart system configuration is deleted (e.g. by a reinstall or package manager) but the JSON config still has enabled=true, OpenRGB would silently fail to start at login. Fix by calling ConfigureAutoStart() in the settings page constructor so the system configuration is always reconciled with the stored JSON state every time OpenRGB starts. Commit amended to make wording more generic by Adam Honse --- qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp b/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp index 7ed18bfa6..255e67045 100644 --- a/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp +++ b/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp @@ -343,6 +343,14 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) : ui->AutoStartStatusLabel->hide(); autostart_initialized = true; + + /*---------------------------------------------------------*\ + | Sync the autostart system configuration with settings on | + | startup. This ensures the file is recreated if it was | + | deleted (e.g. by a reinstall) without requiring the user | + | to manually toggle the checkbox. | + \*---------------------------------------------------------*/ + ConfigureAutoStart(); } OpenRGBSettingsPage::~OpenRGBSettingsPage()