Ubuntu – Sending normal-urgency notifications via notify-send

15.04command lineirssinotify-osdpython

I'm currently on 15.04 (Vivid Vervet) and I can't seem to get any notifications to show unless they're sent with the urgency set to critical, like so:

notify-send -u critical "IRC" "This is a critical IRC notification

unlike this, which doesn't work:

notify-send -u normal "IRC" "This is a normal IRC notification"

I'm using this as a test to troubleshoot irssi-libnotify, which is sending the notifications to the server correctly, but they aren't being shown because they're normal-urgency. I would rather not modify the python script as a work around, since this might be an issue for future packages.

Best Answer

  • The correct syntax is

    notify-send [OPTIONS] <summary> [body]
    

    Eg:

    notify-send -u normal "Hello World" "Have a nice day"
    

    Have a look at man notify-send

    If you want to use an other library (in your case irssi-libnotify) and there is a bug, create an issue on GitHub.


    Example

    notify-send -u critical "IRC" "This is a critical IRC notification"
    

    enter image description here