Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions on the flatpak updater post #20

Open
joao-milheirico opened this issue Oct 5, 2023 · 1 comment
Open

Questions on the flatpak updater post #20

joao-milheirico opened this issue Oct 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@joao-milheirico
Copy link

Sorry for posting like this, couldn't find any other way to message you 😅

Following your flatpak updater timer, I was wondering on

  1. the reason you're missing the:
After=network-online.target
Wants=network-online.target`

On the user flatpaks updater

  1. Why did you seperate into two timer? wouldn't the user one suffice on updating all user and system flatpaks? (without the --user flag)
@jwillikers
Copy link
Owner

Sorry for posting like this, couldn't find any other way to message you 😅

No problem, that's totally fine.

Following your flatpak updater timer, I was wondering on

1. the reason you're missing the:
After=network-online.target
Wants=network-online.target`

I can't put those targets in the user units because they only exist for system units.
Unfortunately, systemd completely separates the user and system contexts.
You can see this by running the following command.

$ systemctl --user status network-online.target
Unit network-online.target could not be found.

On the user flatpaks updater

2. Why did you seperate into two timer? wouldn't the user one suffice on updating all user and system flatpaks? (without the --user flag)

Good point, I didn't think that part through so much.
It makes sense to skip the --user flag there.
I updated the post to better differentiate between when the system and user units are useful.
Given the default behavior of Flatpak to install system-wide, I think it makes the most sense to use the system-wide one unless your explicitly installing Flatpaks in your user-installation, which is common among Flatpak developers.

@jwillikers jwillikers self-assigned this Oct 21, 2023
@jwillikers jwillikers added enhancement New feature or request question Further information is requested labels Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants