Skip to content

Conversation

bash
Copy link
Contributor

@bash bash commented Oct 12, 2025

It looks to me like DBusInterface.get_info can return null.

DBusProxy, which implements DBusInterface returns null if it is created without an interface info. The DBusProxy-specific function get_interface_info is even marked as nullable.

let proxy = DBusProxy::for_bus_future(
    BusType::Session,
    DBusProxyFlags::NONE,
    None,
    "org.freedesktop.portal.Desktop",
    "/org/freedesktop/portal/desktop",
    "org.freedesktop.portal.NetworkMonitor",
)
.await
.unwrap();
let _info = proxy.info();
// thread 'main' (175265) panicked at /home/tau/Source/GNOME/Rust/gtk-rs-core/glib/src/shared.rs:557:9:
// assertion failed: !ptr.is_null()

[[object.function]]
name = "dup_object"
rename = "get"
[[object.function]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should send this upstream instead

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whaaa you were so fast 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to do that so often, it's part of muscle memory already 🤣

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.

3 participants