Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

feat: split flatpak update units into user and system #72

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

castrojo
Copy link
Member

This splits the updater service units into two, one for --user installed flatpaks and one for --system installed flatpaks.

The zenity thing defaults to --user but this should cover the case where users prefer --system. This also fixes #71

@castrojo
Copy link
Member Author

Ok testing on a fresh install:

[jorge@fedora ~]$ systemctl status --user flatpak-user-update.timer
● flatpak-user-update.timer - Flatpak Automatic Update Trigger
     Loaded: loaded (/usr/lib/systemd/user/flatpak-user-update.timer; enabled; preset: disabled)
     Active: active (waiting) since Wed 2023-02-22 19:13:55 EST; 1min 24s ago
      Until: Wed 2023-02-22 19:13:55 EST; 1min 24s ago
    Trigger: Wed 2023-02-22 19:16:54 EST; 1min 34s left
   Triggers: ● flatpak-user-update.service
       Docs: man:flatpak(1)

Feb 22 19:13:55 fedora systemd[1424]: Started flatpak-user-update.timer - Flatpak Automatic Update Trigger.
[jorge@fedora ~]$ systemctl status flatpak-system-update.timer
● flatpak-system-update.timer - Flatpak Automatic Update Trigger
     Loaded: loaded (/usr/lib/systemd/system/flatpak-system-update.timer; enabled; preset: disabled)
     Active: active (waiting) since Wed 2023-02-22 19:12:02 EST; 3min 30s ago
      Until: Wed 2023-02-22 19:12:02 EST; 3min 30s ago
    Trigger: Wed 2023-02-22 19:16:54 EST; 1min 22s left
   Triggers: ● flatpak-system-update.service
       Docs: man:flatpak(1)

I'd prefer at least one more confirmation that we're doing it right. 🥷

@marcoceppi marcoceppi merged commit 99c15be into main Feb 23, 2023
@marcoceppi marcoceppi deleted the fix-service-units branch February 23, 2023 01:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flatpaks installed with the user flag are not auto updated
2 participants