Bug 347069 - notify-send does not display any notification
Summary: notify-send does not display any notification
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.3.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Martin Klapetek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-02 14:51 UTC by Inso
Modified: 2015-05-03 15:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Inso 2015-05-02 14:51:08 UTC
When entering :

notify-send "a" "b"

Nothing shows up on plasma5.

Reproducible: Always

Steps to Reproduce:
1. Run notify-send "a" "b"

Actual Results:  
Nothing shows up in the notifications area

Expected Results:  
A notification containing "a" and "b" should appear.
Comment 1 Martin Klapetek 2015-05-02 15:58:31 UTC
Thanks for the report.

Do other notifications work?
Do you have the notifications applet in the systray (right click on the up pointing arrow -> settings -> notifications is checked)? 
Do you use multi-screen setup? 
Are "application notifications" enabled in Notifications applet settings (right click on the applet -> settings)?
If you use custom position in the notification config, such as top-left, does it work?

Thanks
Comment 2 David Edmundson 2015-05-02 18:59:29 UTC
marking as needsinfo
Comment 3 Inso 2015-05-03 10:19:43 UTC
After a reboot, this morning, notify-send started displaying notifications again.
Is it possible it would be because I made mistakes using the "notify2" library in python ?

import notify2
        if not notify2.is_initted():
            notify2.init("test")
        n = notify2.Notification("test",
                         "test",
                         "notification-message-im"   # Icon name
                        )
        # n.show() <- # I forgot to use n.show at first. After adding n.show(), still no freedesktop notifications would display. After a reboot, it's working again.

Answers to your questions :
Do other notifications work? -> KDE notifications worked
Do you have the notifications applet in the systray (right click on the up pointing arrow -> settings -> notifications is checked)?  -> yes
Do you use multi-screen setup?  ->  no
Are "application notifications" enabled in Notifications applet settings (right click on the applet -> settings)? -> no
If you use custom position in the notification config, such as top-left, does it work? -> Canno't test
Comment 4 Inso 2015-05-03 14:16:11 UTC
I cannot reproduce my theory. Not using "n.show()" doesn't display notifications, but it doesnt block "notify-send" from displaying notifications.

I don't know what stopped notifications from being displayed.
Comment 5 Martin Klapetek 2015-05-03 15:12:55 UTC
I'm afraid I don't know about Notify2 enough to tell you where the problem is. However, this does not seem like a bug in plasmashell.

What you can do is use "bustle", run it, start the capture, run your program with n.show(), and see if/what goes to the org.freedesktop.Notifications service.

Additionally, you may request support with Notify2 devs.

I'm closing this as a local issue.