Skip to content

Error: No introspectable #222

@benfrancis

Description

@benfrancis

Is there a way to stop node-dbus from trying to open a gtkDialog to display an error message?

I'm working on a kiosk application running on top of Ubuntu Core, which doesn't have a full desktop environment and trying to open this dialog just crashes the application. I'd like to be able to fail more gracefully and handle the error myself.

More specifically, if the application tries to call

systemBus.getInterface('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager', 'org.freedesktop.NetworkManager', callback);

but the application doesn't have permission to access the network manager, then node-dbus fires an error saying "Error: No introspectable" and I see an error saying "GtkDialog mapped without a transient parent. This is discouraged." and my application fails to start. I'd to prevent that error from trying to open a GtkDialog and handle it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions