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

Failed to encode dictionary when trying to show notification #239

Open
Zzombiee2361 opened this issue Apr 19, 2022 · 0 comments
Open

Failed to encode dictionary when trying to show notification #239

Zzombiee2361 opened this issue Apr 19, 2022 · 0 comments

Comments

@Zzombiee2361
Copy link

I'm trying to show notification using dbus following the spec, but it's not working and I got Failed to encode dictionary in the console

const bus = DBus.getBus('session');
bus.getInterface(
    'org.freedesktop.Notifications',
    '/org/freedesktop/Notifications',
    'org.freedesktop.Notifications',
    (err, iface) => {
        if(err) {
            console.log('Error when initializing D-Bus interface', err);
            return;
        }

        iface.Notify('APP', 0, '', 'Title', 'Body', '[]', '{"urgency": 1}', 5000);
    }
);
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

No branches or pull requests

1 participant