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

Given ID should be reused when replacing notification #161

Open
The-Compiler opened this issue Mar 27, 2021 · 0 comments
Open

Given ID should be reused when replacing notification #161

The-Compiler opened this issue Mar 27, 2021 · 0 comments

Comments

@The-Compiler
Copy link

The-Compiler commented Mar 27, 2021

According to the spec:

If replaces_id is not 0, the returned value is the same value as replaces_id.

However, linux_notification_center assigns a new ID even when replacing a notification.

This can e.g. by reproduced by doing:

$ gdbus call --session \
           --dest org.freedesktop.Notifications \
           --object-path /org/freedesktop/Notifications \
           --method org.freedesktop.Notifications.Notify \
           -- \
           my_app_name \
           0 \ 
           gtk-dialog-info \
           "The Summary" \  
           "Here's the body of the notification" \
           '[]' \
           '{}' \
           -1
(uint32 32,)

then with the ID from above:

$ gdbus call --session \
           --dest org.freedesktop.Notifications \
           --object-path /org/freedesktop/Notifications \
           --method org.freedesktop.Notifications.Notify \
           -- \
           my_app_name \
           32 \
           gtk-dialog-info \
           "The Summary 2" \
           "Here's the body of the notification" \
           '[]' \
           '{}' \
           -1
(uint32 33,)

replacing itself works fine (not sure anymore about this!), but there's a new ID returned.

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