Skip to content

autostart: add support for flatpak, add buttons to manually request/disable#838

Draft
deltragon wants to merge 10 commits intoslgobinath:masterfrom
deltragon:autostart-flatpak
Draft

autostart: add support for flatpak, add buttons to manually request/disable#838
deltragon wants to merge 10 commits intoslgobinath:masterfrom
deltragon:autostart-flatpak

Conversation

@deltragon
Copy link
Collaborator

@deltragon deltragon commented Jan 20, 2026

Description

Based on #837 and #836, only the last five commits are new.

This PR adds support for flatpak for autostarting Safe Eyes on boot.
It also adds buttons to the settings to request/disable autostart, both for flatpak and non-flatpak.
Note that the behaviour between flatpak and non-flatpak isn't entirely the same - since it isn't possible to detect whether there is an autostart file in flatpak, we only request it on the first startup (and whenever the user manually triggers it from the settings), and can't check if it's broken or repair it.

also merge duplicated code in initialize and reset
Also skip saving the file on load if it is unchanged.
(It will only changed when new default values are added on an update).

The timing when the config is loaded is moved around, as otherwise
logging may not be initialized yet.
Only load the config in the main GTK instance, and not the CLI
instances. This can be changed again later, but it is not needed right
now, so we skip it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant