-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Implement system updates #88
Conversation
Another piece of information I'd like here is last refresh time so we can display a string like we do here: https://github.com/elementary/appcenter/blob/b33d12c6485644512d7e3d52264397562a89f605/src/Views/AppListUpdateView.vala#L256C1-L260C23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks mostly good, I assume this triggers PackageKit's offline-updates mechanism?
Yup that's right |
Done however it's not used to delay checks for updates but I also don't think that's necessary or is it? |
@leolost2605 I think AppCenter checks when the timer runs if it's been more than 24 hours since the last refresh time and skips if it hasn't so that you don't get it checking multiple times if you've already checked manually. I'm not sure how much it really costs for us to check again 🤷♀️ |
@danirabbit yeah I think performance wise it's pretty much negligible if you've got more than 100 kB download. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things mainly about notifications
Ok this uses systemd timers now. However when testing them with
Same with the already existing firmware timers or rather their service files I did some googling and found it works when installed in the user unit dir and then started with --user but the current version still has system unit dir because I'm pretty sure I missed something obvious since I have pretty much no experience with systemd units. Btw maybe totally unrelated but both timers also don't get autostarted for me...? Anybody any ideas here? |
@leolost2605 perhaps we should revert back to the previous timer method and then we can try to switch to systemd timers in a follow up branch so that we're not blocking this feature while we wait for someone with more expertise |
4f1a487
to
9b058f1
Compare
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really happy with this feature! I think we can iterate/expand/etc after merging but this all works as expected. Great work! 🚀
Featurewise this should be pretty much on par with what appcenter currently does. In my testing it was very reliable and quite fast since it only has to deal with packagekit and not appstream and/or flatpak.
It will send notifications about updates, restart required and update failed.
This goes towards addressing elementary/appcenter#2107. Since we need packagekit for ubuntudrivers anyways I started with this (and because I know packagekit and don't know ubuntu drivers or the distro agnostic driver management mentioned there. The only thing I could find in this direction was an old solus project 🤷)