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

glib.ProxyInterface async method calls do not properly return single results #108

Open
mpnordland opened this issue Dec 22, 2021 · 0 comments · May be fixed by #109
Open

glib.ProxyInterface async method calls do not properly return single results #108

mpnordland opened this issue Dec 22, 2021 · 0 comments · May be fixed by #109

Comments

@mpnordland
Copy link

Hello again!

When calling methods that return a single result, the asynchronous glib.ProxyInterface functions return a list with a single item.
The synchronous versions of those methods correctly return just the single result.

I believe the code from here in the synchronous call should be moved up to here in the asynchronous call.

I will have a pull request in shortly.

Thanks,
Micah

mpnordland added a commit to mpnordland/python-dbus-next that referenced this issue Dec 22, 2021
fixes altdesktop#108
The async method calls on the glib.ProxyInterface class lacked the
ability to unpack a single result while the sync version did do that.
This commit moves unpacking code to the async version so both will
behave correctly.
@mpnordland mpnordland linked a pull request Dec 22, 2021 that will close this issue
garyvdm pushed a commit to garyvdm/dbus-ezy that referenced this issue May 9, 2024
fixes altdesktop#108
The async method calls on the glib.ProxyInterface class lacked the
ability to unpack a single result while the sync version did do that.
This commit moves unpacking code to the async version so both will
behave correctly.
garyvdm pushed a commit to garyvdm/dbus-ezy that referenced this issue May 10, 2024
fixes altdesktop#108
The async method calls on the glib.ProxyInterface class lacked the
ability to unpack a single result while the sync version did do that.
This commit moves unpacking code to the async version so both will
behave correctly.
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 a pull request may close this issue.

1 participant