Add GitHub release update check to Python GNOME and KDE KCM UIs#160
Open
Add GitHub release update check to Python GNOME and KDE KCM UIs#160
Conversation
Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add version check for breezy-desktop releases on load
Add GitHub release update check to Python GNOME and KDE KCM UIs
Feb 24, 2026
Owner
|
@copilot remove the codeql file (don't .gitignore it, just remove it from the commit) and also have the UIs just display a message, without a link to the releases page (since there are various ways to update depending on how they installed, but none of them require going to the releases page). |
Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com>
Contributor
Author
Done in commit 1a729ac. The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On load, both the GNOME Python UI and the KDE KCM UI check the breezy-desktop GitHub releases and notify the user if a newer version is available.
Python GNOME UI
updatechecker.py: Fetcheshttps://api.github.com/repos/wheaney/breezy-desktop/releases/latestin a background daemon thread using stdliburllib(no new dependencies). Compares version tuples, stripsvprefix from GitHub tags, and invokes a callback with the latest version string orNone.window.ui: NewGtkInfoBar(update_available_banner,message-type="info", initially hidden) displaying a plain update message with no button or link.window.py: Acceptsversionparameter; callscheck_for_update()on init; callback usesGLib.idle_addto reveal the banner safely on the main thread.main.py: Passesself.versionintoBreezydesktopWindow.meson.build: Registersupdatechecker.pyas an installed source.KDE KCM
breezydesktopeffectkcm.ui: NewlabelUpdateAvailableQLabel (initially hidden, blue bold) inserted betweenlabelGlobalWarningand the tab widget.breezydesktopeffectkcm.h/.cpp: NewcheckForUpdates()method usingQNetworkAccessManager(async). On reply, parses version tuples with early-out on invalid components, logs network errors viaqCDebug, and sets the label to a plain text message if the remote version is newer.CMakeLists.txt: AddsQt6::Networkto bothfind_packageandtarget_link_libraries.Both UIs display a plain message — "A newer version (X.Y.Z) is available. Please update using the same method you used to install." — with no link to the releases page, since update methods vary by installation type. Both implementations guard against network failures gracefully — errors are logged at debug level only and the UI remains unaffected.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.