! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Orage desktop notifications expire too quickly
Status:
RESOLVED: FIXED
Product:
Xfce4-notifyd
Component:
general

Comments

Description Hypnos 2011-04-04 21:48:36 CEST
Hello,

I am using Orage 4.8.1 with libnotify-0.7.2 under Gentoo.

I have a recurring appointment to remind me to take medicine every few
days in the morning.  However, I do not always wake up at the same time.
Thus, I need the notification to stay on my desktop indefinitely so I
can see it when I do wake up.

This was the case with Orage 4.7.x .  However, after upgrading to Orage
4.8.x, the desktop notification disappears after 10 minutes if I don't
set the expiration time.  If I do set the expiration time, the maximum
I can set is only 999 seconds .

How do I get the Orage desktop notifications to never expire until I
click on them?
Comment 1 juha editbugs 2011-04-06 14:04:10 CEST
I have libnotify 0.4.5 and 0.5.0 in my systems (ubuntu). Those do not have problems and the alarm stays.

There is big changes in libnotify 0.7 though and I have some macros to get Orage to work. Those should not caues issues, but I can't test it now.

Need to see how I can find 0.7
Comment 2 juha editbugs 2011-04-06 14:04:38 CEST
In the meantime you can use Orage window instead of libical.
Comment 3 Hypnos 2011-04-06 18:30:12 CEST
I'm sorry, I neglected to mention that I had the same problem with libnotify v. 0.4.5, which is what prompted me to upgrade to 0.7.2, without success.

The problem may not be with Orage, but with xfce4-notifyd, as the following script I clipped from the Ubuntu forums does not work -- the notice still only lasts exactly 10 minutes.

###############

#!/usr/bin/env python
import dbus
item = ('org.freedesktop.Notifications')
path = ('/org/freedesktop/Notifications')
interface = ('org.freedesktop.Notifications')

icon = ''
array = ''
hint = ''
time = 0 # '0' should mean never expires!
app_name = ('Test Application')
title = ('NOTIFICATION TEST')
body = ('This is a test of the notification system via DBus.')

bus = dbus.SessionBus()
notif = bus.get_object(item, path)
notify = dbus.Interface(notif, interface)
notify.Notify(app_name, 0, icon, title, body, array, hint, time)

###############
Comment 4 juha editbugs 2011-04-07 11:51:29 CEST
Thanks.
Yes, looks like this is xfce4-notifyd bug. It probably does not support never expiring setting.

I'll move this bug to xfce4-notifyd. If that is not correct, just assign back to Orage and I will then try to test it agains xfce4-notifyd.
Comment 5 Jérôme Guelfucci editbugs 2011-07-02 10:16:38 CEST
This should be fix in git master with commit 46ad7630ed9a5dc78f7ee9307ba8268fe14bab5c.

Xfce4-notifyd has a close timeout to exit automatically when being idle 10 minutes. Unfortunately, it was not initialized properly and it would cause the daemon to exit even if notifications were active...

Bug #7467

Reported by:
Hypnos
Reported on: 2011-04-04
Last modified on: 2011-07-02

People

Assignee:
Jérôme Guelfucci
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information