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

Bump DBus stack take 2 #15685

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

affederaffe
Copy link
Contributor

What does the pull request do?

  1. Bump Tmds.DBus.Protocol and Tmds.DBus.SourceGenerator.
    This uses the "official" Variant system instead of the SourceGenerator provided one (which was removed).
    Accept the explicit ignoration of the DBus spec and assume collapsed variants.

  2. Dispose DBus objects correctly:
    This may need further discussion as it currently uses the Dispatcher.ShutdownFinished event to detect when to dispose those objects (namely DBusPlatformSettings and the DBusConnection itself).
    Fixes a DBusException when the application closes.
    In the future, we might want a more generic approach like making the Locator dispose IDisposables.
    Additionally, we run run 2 asynchronous methods synchronously (DBusConnection.TryInitialize() and DBusPlatformSettings.TryInitialize(). In order to properly fix this, the application startup itself would have to be asynchronous as far as I can see.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

None

Fixed issues

#15655

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0048326-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 requested a review from jmacato May 11, 2024 02:45
@maxkatz6 maxkatz6 added os-linux backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants