Shell 19: Linux autostart entry with Hidden=true is reported Off and rewritten #926

Open
opened 2026-11-19 03:22:40 +00:00 by charles · 0 comments
Owner

Follow-up from the review of #861 (Shell 16, core-autostart, #808), for Shell 19 (#811, fluxer-platform autostart).

What: on Linux, an autostart entry that the desktop turned off (Hidden=true, or X-GNOME-Autostart-enabled=false) must not be reported as AutostartState::Off. With the switch on, shell::autostart::reconcile(true, Off) asks for SetAutostart(true) at the next start, which rewrites the entry and overrides the desktop's own disable.

Original: fluxer_desktop/src/main/Autostart.ts:579-591: the repair skips hidden or X-GNOME-Autostart-enabled=false entries.

Suggested fix (platform side): report such an entry as AutostartState::DisabledBySystem, the Linux equivalent of Windows "Startup apps". The core then leaves it alone while the switch is on and removes it when the switch is turned off ((false, DisabledBySystem) -> SetAutostart(false) since the round-1 fix of #808). Note that DISABLED_BY_SYSTEM_NOTE currently reads "Turned off in Windows settings.", so the note would need an OS-neutral or Linux variant.

Seen on shell at 31c8a1273.

Follow-up from the review of #861 (Shell 16, core-autostart, #808), for Shell 19 (#811, fluxer-platform autostart). **What:** on Linux, an autostart entry that the desktop turned off (`Hidden=true`, or `X-GNOME-Autostart-enabled=false`) must not be reported as `AutostartState::Off`. With the switch on, `shell::autostart::reconcile(true, Off)` asks for `SetAutostart(true)` at the next start, which rewrites the entry and overrides the desktop's own disable. **Original:** `fluxer_desktop/src/main/Autostart.ts:579-591`: the repair skips hidden or `X-GNOME-Autostart-enabled=false` entries. **Suggested fix (platform side):** report such an entry as `AutostartState::DisabledBySystem`, the Linux equivalent of Windows "Startup apps". The core then leaves it alone while the switch is on and removes it when the switch is turned off (`(false, DisabledBySystem) -> SetAutostart(false)` since the round-1 fix of #808). Note that `DISABLED_BY_SYSTEM_NOTE` currently reads "Turned off in Windows settings.", so the note would need an OS-neutral or Linux variant. Seen on `shell` at 31c8a1273.
charles added this to the Desktop shell milestone 2026-11-19 03:22:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#926
No description provided.