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

[DBUS] Don't break when reading settings from org.freedesktop.portalSettings v1 #15654

Closed
wants to merge 1 commit into from

Conversation

kekekeks
Copy link
Member

@kekekeks kekekeks commented May 8, 2024

#15568 made an attempt to correctly handle int32-in-variant-in-another-variant value ([Variant: [Variant(uint): 2]] in qdbus notation), however the current version of Tmds.DBus.Protocol simply reads it as a single VariantValue with int32 type (tmds/Tmds.DBus#282).

The PR removes GetItem call that wasn't intended to be used for unwrapping variants and adds a type check later just in case.

Verified with Plasma 5.27.
@affederaffe

@avaloniaui-bot
Copy link

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

@affederaffe
Copy link
Contributor

Shouldn't this be fixed in Tmds.DBus.Protocol then?
Per spec we expect the Variant to not be collapsed, so in my opinion this is the wrong layer to fix it.
In the meantime, we can easily revert the initial PR, the old Tmds.DBus.SourceGenerator Variant system has proven to work as expected.

@maxkatz6
Copy link
Member

Closing this PR, as dbus upgrade was reverted.

@maxkatz6 maxkatz6 closed this 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

4 participants