Skip to content

Update Avalonia to 12.2 - #199

Merged
vesnicancz merged 2 commits into
masterfrom
update-avalonia-12.2
Nov 26, 2026
Merged

vesnicancz merged 2 commits into
masterfrom
update-avalonia-12.2

Conversation

@vesnicancz

@vesnicancz vesnicancz commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Avalonia.Labs.Notifications 12.2.0 is built against Avalonia 12.1.0 and Tmds.DBus.Protocol 0.94.1 and no longer calls DBusConnection.AsConnection(), which was the reason Avalonia was held at 12.0.x (the app crashed at startup on Linux with a MissingMethodException).

  • Avalonia, Desktop, Fonts.Inter, Themes.Fluent, Headless 12.0.5 → 12.2.0; Controls.DataGrid 12.0.1 → 12.1.2; Labs.Notifications 12.1.0 → 12.2.0.
  • Tmds.DBus.Protocol is no longer referenced directly: the GlobalShortcuts portal client takes it transitively from Avalonia (now 0.94.1, the version Avalonia and Labs are built against), so it follows Avalonia updates instead of being pinned by hand.
  • GlobalShortcutsPortal uses the Notification<T> overloads of AddMatchAsync; values are handled only when HasValue, errors only when Exception is set.
  • The scaled Linux icon is saved with PngBitmapEncoderOptions.Default.

Build and all 1547 tests pass locally on Windows. Still to check by hand on Linux: startup with notifications, the global shortcut, and a visual pass over the Fluent styles and the edit dialog after the binding and focus changes in 12.1/12.2.

Avalonia.Labs.Notifications 12.2.0 is built against Avalonia 12.1 and
Tmds.DBus.Protocol 0.94.1 and no longer calls DBusConnection.AsConnection(),
which made the app crash at startup on Linux and held Avalonia at 12.0.x.

Move the GlobalShortcuts portal client to the Notification<T> overloads of
AddMatchAsync and save the scaled icon with PngBitmapEncoderOptions, both
replacing APIs that are now obsolete.
The GlobalShortcuts portal client only compiles against it, and the version
Avalonia and Avalonia.Labs.Notifications ask for is the one they are built
against. Pinning it by hand only risks falling behind the next Avalonia
update.
@vesnicancz
vesnicancz merged commit fce7b89 into master Nov 26, 2026
5 checks passed
@vesnicancz
vesnicancz deleted the update-avalonia-12.2 branch November 26, 2026 08:33
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.

1 participant