notify-send not working

3 Antworten [Letzter Beitrag]
oralfloss
Offline
Beigetreten: 06/20/2013

I have noticed certain programs display those neat notifications in the top-right of the screen, like Ryhthmbox, Transmission, and the volume/brightness controls. From what I've read, these are just shell scripts that all use notify-osd. I have notify-osd installed, and I have tried reinstalling it, but I cannot get the script that displays these notifications to work. The script is, at least from what I have read online, notify-send. I have tried to get this to work both in DeadBeef to display the current song, and in the command line. However, all I get in the command line is "bash: notify-send: command not found".

My question is if there is a different command being used by other programs which are specific to Trisquel, or if I'm doing something else wrong. Any feedback would be nice.

oralfloss
Offline
Beigetreten: 06/20/2013

I should also note that notify-osd is, in fact, running when I try these scripts. The example programs still display the notifications after reinstalling notify-osd.

lembas
Offline
Beigetreten: 05/13/2010

The programs might use the notify library to work the magic but you might not have the external binary (notify-send) installed. It's in the package libnotify-bin.

Having said that, whereas the default notify thingy is quite pretty, it's sadly also pretty dumb. E.g. its developers decided that the end user must not be able to change the time a notification is displayed... Because of ideas like that I've switched to osd_cat command from xosd-bin package. https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/390508

islander
Offline
Beigetreten: 05/27/2013

Open the program you want to have display a desktop notification and edit "Preferences" to make sure that "show desktop notification" is selected. Search for "Customize Notify-OSD" in your favorite search-engine to learn how to change the size, shape, location, and color of the popups, or how to create your own pop-up scripts with or w/o sounds and/or photos. Thankfully, they remind me to relax, play a tune, or go for a swim daily! You are correct... they are python and perl scripts that communicate with the desktop notification framework.
Keep tickling those piano keys & happy hacking! :)