From c699ffa936049b091a099069ddf3d9781ee1ff3d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:15:11 +0000 Subject: [PATCH] Fix: Correct autostart query logic for Linux The `_query_autostart` method in `gui.py` had inverted logic for checking the autostart status on Linux. It would return `False` when the application's path was found in the autostart file, and `True` otherwise. This caused the autostart checkbox in the settings to display an incorrect status and for the feature to not work as intended. This commit corrects the logic by removing the `not` operator from the check, ensuring that the method returns `True` when the path is found in the autostart file, and `False` otherwise. --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index 758b8d5..e3cd47c 100644 --- a/gui.py +++ b/gui.py @@ -1812,7 +1812,7 @@ class SettingsPanel: return False with autostart_file.open('r', encoding="utf8") as file: # TODO: Consider deleting the old file to avoid autostart errors - return self._get_self_path() not in file.read() + return self._get_self_path() in file.read() def update_autostart(self) -> None: enabled = bool(self._vars["autostart"].get())