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

SystemUpdate: Share last refresh time via DBus #175

Merged
merged 4 commits into from
Dec 27, 2024

Conversation

ryonakano
Copy link
Contributor

Fixes elementary/switchboard-plug-about#342

I think this is a racing issue. The plug possibly reads from last-refresh-time before Settings Daemon writes to it.

This issue wouldn't happen by making the plug inquire last refresh time from Settings Daemon instead of from GSettings, because Settings Daemon runs in a single thread and the following things happen in order:

src/Backends/SystemUpdate.vala Outdated Show resolved Hide resolved
@leolost2605
Copy link
Member

Sorry I didn't realize there was no review request yet so if you were making changes anyway just ignore me 😬

@ryonakano
Copy link
Contributor Author

Sorry I didn't realize there was no review request yet so if you were making changes anyway just ignore me 😬

No apologies, this PR was ready for review but I forgot to request review from the desktop developers. Thank you for your quick review!

@ryonakano ryonakano requested review from leolost2605 and a team December 27, 2024 12:17
@ryonakano ryonakano changed the title SystemUpdate: Share last refresh time via DBus instead of GSettings SystemUpdate: Share last refresh time via DBus Dec 27, 2024
Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@leonardo-lemos leonardo-lemos merged commit 6a387c2 into main Dec 27, 2024
4 checks passed
@leonardo-lemos leonardo-lemos deleted the ryonakano/refresh_time_via_dbus branch December 27, 2024 15:02
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.

Refreshing update check does not refresh "Last refreshed"
3 participants