Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-04-04 01:54:48

clappboard
Member
Registered: 2014-04-04
Posts: 3

How can I update an existing XFCE4 notification?

Right now I'm using notify-send to send a notification when I mute or unmute pulseaudio via my own script.  The problem is that if I try to do the same for volume I end up with a ton of notifications piling up on the screen.  Is there any way that I can create a notification, which I can then update with the changes in volume level until the notification expires?  Oh, and xfce4-volumed doesn't work on my setup and ends up causing problems, so that's a no-go...

Thanks in advance...

Offline

#2 2014-04-04 10:14:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,004

Re: How can I update an existing XFCE4 notification?

I don't think the distributed xfce4-notifyd app can do that. However, someone has forked it to allow just that - reuse existing notification events. See: https://github.com/nowrep/notify-desktop.

Otherwise, you may wish to create an enhancement request at https://bugzilla.xfce.org/.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2014-04-04 21:51:47

clappboard
Member
Registered: 2014-04-04
Posts: 3

Re: How can I update an existing XFCE4 notification?

I'm having trouble building the package.  It gives an error when I try making it, like so:

$ make
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
cc -c -o ../build/dbusimp.o dbusimp.c -Wall -Wextra -pedantic  -O2 -s -DNDEBUG
dbusimp.c:22:23: fatal error: dbus/dbus.h: No such file or directory
 #include <dbus/dbus.h>
                       ^
compilation terminated.
make: *** [../build/dbusimp.o] Error 1

I installed libdbus-1-3, but to no avail.  Any insight?  (Sorry, I know this is off the original topic...)

Offline

#4 2014-04-04 22:26:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,004

Re: How can I update an existing XFCE4 notification?

No package 'dbus-1' found

You need to install the dbus development package. What distro do you use?
Ubuntu = libdbus-1-dev
Arch = libdbus


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#5 2014-04-05 00:57:34

clappboard
Member
Registered: 2014-04-04
Posts: 3

Re: How can I update an existing XFCE4 notification?

ToZ wrote:

No package 'dbus-1' found

You need to install the dbus development package. What distro do you use?
Ubuntu = libdbus-1-dev
Arch = libdbus

Ack, I figured it out just before you posted.  It was the #include that made me clue in: I'd have a hard time compiling against libdbus without the dev package...d'oh.  I've got the notification working perfectly now, thanks to your link.  I've filed a bug as well.

Thanks!

Offline

Board footer

Powered by FluxBB