Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-05-25 14:41:41

Devuan
Member
Registered: 2018-01-10
Posts: 27

Notifications not obeying 'dissapear after' setting

Hello:

I am having an issue similar to the one posted here:

https://forum.xfce.org/viewtopic.php?id=12106

The difference is that the only setting that does not 'stick' is the 'dissapear after' one. (see EDIT below)

ie: I set it to 2 seconds but it stays on for maybe 10.

I am running Devuan ASCII 2.0.0

groucho@devuan:~$ uname -a
Linux devuan 4.9.0-9-686-pae #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) i686 GNU/Linux
groucho@devuan:~$ 

Xfce4-notifyd version:

groucho@devuan:~$ xfce4-notifyd-config -V
xfce4-notifyd-config 0.3.4
Copyright (c) 2010 Brian Tarricone <bjt23@cornell.edu>
Copyright (c) 2010 Jérôme Guelfucci <jeromeg@xfce.org>
Copyright (c) 2016 Ali Abdallah <ali@xfce.org>code
Copyright (c) 2016 Simon Steinbeiß <simon@xfce.org>
Released under the terms of the GNU General Public License, version 2
Please report bugs to http://bugzilla.xfce.org/enter_bug.cgi?product=Xfce4-notifyd.
groucho@devuan:~$ 

apt-cache policy:

groucho@devuan:~$ apt-cache policy xfce4-notifyd 
xfce4-notifyd:
  Installed: 0.3.4-1
  Candidate: 0.3.4-1
  Version table:
 *** 0.3.4-1 500
        500 http://deb.devuan.org/merged ascii/main i386 Packages
        100 /var/lib/dpkg/status
groucho@devuan:~$ 

dpkg -L:

groucho@devuan:~$ dpkg -L xfce4-notifyd 
/.
/usr
/usr/bin
/usr/bin/xfce4-notifyd-config
/usr/lib
/usr/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu/xfce4
/usr/lib/i386-linux-gnu/xfce4/notifyd
/usr/lib/i386-linux-gnu/xfce4/notifyd/xfce4-notifyd
/usr/lib/systemd
/usr/lib/systemd/user
/usr/lib/systemd/user/xfce4-notifyd.service
/usr/share
/usr/share/applications
/usr/share/applications/xfce4-notifyd-config.desktop
/usr/share/dbus-1
/usr/share/dbus-1/services
/usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service
/usr/share/doc
/usr/share/doc/xfce4-notifyd
/usr/share/doc/xfce4-notifyd/NEWS.gz
/usr/share/doc/xfce4-notifyd/README
/usr/share/doc/xfce4-notifyd/TODO
/usr/share/doc/xfce4-notifyd/changelog.Debian.gz
/usr/share/doc/xfce4-notifyd/changelog.gz
/usr/share/doc/xfce4-notifyd/copyright
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/xfce4-notifyd.png
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/xfce4-notifyd
/usr/share/locale
/usr/share/locale/ar
/usr/share/locale/ar/LC_MESSAGES
/usr/share/locale/ar/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ast
/usr/share/locale/ast/LC_MESSAGES
/usr/share/locale/ast/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/bg
/usr/share/locale/bg/LC_MESSAGES
/usr/share/locale/bg/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ca
/usr/share/locale/ca/LC_MESSAGES
/usr/share/locale/ca/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/da
/usr/share/locale/da/LC_MESSAGES
/usr/share/locale/da/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/el
/usr/share/locale/el/LC_MESSAGES
/usr/share/locale/el/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/en_AU
/usr/share/locale/en_AU/LC_MESSAGES
/usr/share/locale/en_AU/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/en_GB
/usr/share/locale/en_GB/LC_MESSAGES
/usr/share/locale/en_GB/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/eu
/usr/share/locale/eu/LC_MESSAGES
/usr/share/locale/eu/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/fi
/usr/share/locale/fi/LC_MESSAGES
/usr/share/locale/fi/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/gl
/usr/share/locale/gl/LC_MESSAGES
/usr/share/locale/gl/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/he
/usr/share/locale/he/LC_MESSAGES
/usr/share/locale/he/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/hr
/usr/share/locale/hr/LC_MESSAGES
/usr/share/locale/hr/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/id
/usr/share/locale/id/LC_MESSAGES
/usr/share/locale/id/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/is
/usr/share/locale/is/LC_MESSAGES
/usr/share/locale/is/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/kk
/usr/share/locale/kk/LC_MESSAGES
/usr/share/locale/kk/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ko
/usr/share/locale/ko/LC_MESSAGES
/usr/share/locale/ko/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/lt
/usr/share/locale/lt/LC_MESSAGES
/usr/share/locale/lt/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/lv
/usr/share/locale/lv/LC_MESSAGES
/usr/share/locale/lv/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ms
/usr/share/locale/ms/LC_MESSAGES
/usr/share/locale/ms/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/nb
/usr/share/locale/nb/LC_MESSAGES
/usr/share/locale/nb/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/oc
/usr/share/locale/oc/LC_MESSAGES
/usr/share/locale/oc/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/pa
/usr/share/locale/pa/LC_MESSAGES
/usr/share/locale/pa/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/pt_BR
/usr/share/locale/pt_BR/LC_MESSAGES
/usr/share/locale/pt_BR/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ro
/usr/share/locale/ro/LC_MESSAGES
/usr/share/locale/ro/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/si
/usr/share/locale/si/LC_MESSAGES
/usr/share/locale/si/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/sk
/usr/share/locale/sk/LC_MESSAGES
/usr/share/locale/sk/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/sl
/usr/share/locale/sl/LC_MESSAGES
/usr/share/locale/sl/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/sq
/usr/share/locale/sq/LC_MESSAGES
/usr/share/locale/sq/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/sr
/usr/share/locale/sr/LC_MESSAGES
/usr/share/locale/sr/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/th
/usr/share/locale/th/LC_MESSAGES
/usr/share/locale/th/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/tr
/usr/share/locale/tr/LC_MESSAGES
/usr/share/locale/tr/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/ug
/usr/share/locale/ug/LC_MESSAGES
/usr/share/locale/ug/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/uk
/usr/share/locale/uk/LC_MESSAGES
/usr/share/locale/uk/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/vi
/usr/share/locale/vi/LC_MESSAGES
/usr/share/locale/vi/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/locale/zh_TW
/usr/share/locale/zh_TW/LC_MESSAGES
/usr/share/locale/zh_TW/LC_MESSAGES/xfce4-notifyd.mo
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/xfce4-notifyd-config.1.gz
/usr/share/themes
/usr/share/themes/Bright
/usr/share/themes/Bright/xfce-notify-4.0
/usr/share/themes/Bright/xfce-notify-4.0/gtk.css
/usr/share/themes/Default
/usr/share/themes/Default/xfce-notify-4.0
/usr/share/themes/Default/xfce-notify-4.0/gtk.css
/usr/share/themes/Retro
/usr/share/themes/Retro/xfce-notify-4.0
/usr/share/themes/Retro/xfce-notify-4.0/gtk.css
/usr/share/themes/Smoke
/usr/share/themes/Smoke/xfce-notify-4.0
/usr/share/themes/Smoke/xfce-notify-4.0/gtk.css
/usr/share/themes/ZOMG-PONIES!
/usr/share/themes/ZOMG-PONIES!/xfce-notify-4.0
/usr/share/themes/ZOMG-PONIES!/xfce-notify-4.0/gtk.css
groucho@devuan:~

---

EDIT:

If I do a notify test ...

notify-send test test

... the notification does last the 2 seconds I set it to.

The notifications that are not maintaining the 'dissapear after' setting are the ones from the Xfce Power Manager. 

Another question:
In order to save disk space (however small the amount may be), is it possible to uninstall all the unused locale settiings?

Thanks in advance.

D.

Last edited by Devuan (2019-05-25 20:30:17)

Offline

#2 2019-05-25 20:45:39

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

Re: Notifications not obeying 'dissapear after' setting

Devuan wrote:

The notifications that are not maintaining the 'dissapear after' setting are the ones from the Xfce Power Manager.

You are right. Nice find. They appear to be hard-coded. See: https://git.xfce.org/xfce/xfce4-power-m … ery.c#n189 (battery=8000=8 seconds) and https://git.xfce.org/xfce/xfce4-power-m … wer.c#n354 (power=1000=10 seconds). Please create a bug report to get it fixed.

Another question:
In order to save disk space (however small the amount may be), is it possible to uninstall all the unused locale settiings?

Wouldn't this be a packaging question? This seems to indicate that it can be handled by apt.


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 ---

Offline

#3 2019-05-25 21:02:16

Jerry3904
Member
Registered: 2013-11-09
Posts: 863

Re: Notifications not obeying 'dissapear after' setting

Another question:
In order to save disk space (however small the amount may be), is it possible to uninstall all the unused locale settiings?

Wouldn't this be a packaging question? This seems to indicate that it can be handled by apt.

Our users and devs do it a lot without problem AFAIK.


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#4 2019-05-25 21:13:04

Devuan
Member
Registered: 2018-01-10
Posts: 27

Re: Notifications not obeying 'dissapear after' setting

Hello:

ToZ wrote:

... Nice find.
... appear to be hard-coded.

I see ...

ToZ wrote:

Please create a bug report to get it fixed.

OK.

ToZ wrote:

... a packaging question?
This seems to indicate that it can be handled by apt.

I'll look into it.

Removing packages is not an activity I particularly excel in (please don't ask ...)

I guess apt can be instructed to not download them but once they are there it's another matter.

Thanks for your input.

D.

Offline

#5 2019-05-25 21:14:53

Devuan
Member
Registered: 2018-01-10
Posts: 27

Re: Notifications not obeying 'dissapear after' setting

Hello:

Jerry3904 wrote:

... users and devs do it a lot without problem AFAIK.

Good to know.

How would I go about doing it?
ie: how do your users/devs do it?

Thanks in advance,

D.

Offline

#6 2019-05-25 22:07:03

Devuan
Member
Registered: 2018-01-10
Posts: 27

Re: Notifications not obeying 'dissapear after' setting

Hello:

ToZ wrote:

Please create a bug report ...

Done:
https://bugzilla.xfce.org/show_bug.cgi?id=15470

While I was filing the bug, it dawned on me that maybe someone thought that these settings should be hard-coded.

The clue was that the value for critical is higher than the value for normal:

(XFPM_NOTIFY_NORMAL) =  8000
(XFPM_NOTIFY_CRITICAL) = 10000  

Not that I agree with that being so, quite the contrary.

I mean, if you bothered to go and set your notifications timeout to 2 seconds, it is probably because you know why.
And if not, you will eventually have learnt something new.

- rant
Now, if the developers stopped shoving Orage down your throat when you install Xfce4, it would be great.
Yes, I find it a nuisance that it is hard-coded into Xfce4 and you cannot get rid of it.

Reminds me of Microsoft, IE and how it was an inseparable part of the OS.  8^ '
- /rant

Cheers,

D.

Offline

#7 2019-05-26 00:54:10

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

Re: Notifications not obeying 'dissapear after' setting

Devuan wrote:

- rant
Now, if the developers stopped shoving Orage down your throat when you install Xfce4, it would be great.
Yes, I find it a nuisance that it is hard-coded into Xfce4 and you cannot get rid of it.

Reminds me of Microsoft, IE and how it was an inseparable part of the OS.  8^ '
- /rant

Now that it's been identified, it can be fixed. That's how we make the environment better. Thanks.

I'm not sure I understand your comment about orage. Xfce does not force orage (it's an optional plugin) - this must be something that the distro is doing.


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 ---

Offline

#8 2019-05-26 01:54:10

Devuan
Member
Registered: 2018-01-10
Posts: 27

Re: Notifications not obeying 'dissapear after' setting

Hello:

ToZ wrote:

... can be fixed. That's how we make the environment better. Thanks.

Indeed ...
But it is I who has to thank you and the people taking care of Xfce and FOSS.

ToZ wrote:

... not sure I understand your comment about orage.

You are too kind.

I was rather rude and my comment (in the form given) was unwarranted.
Please accept my apologies. (missed my pill this morning)  =-/

ToZ wrote:

Xfce does not force orage ...

I have tried to uninstall it but it takes xfce4 along with it.

groucho@devuan:~$ sudo apt-get purge orage
Reading package lists... Done
Building dependency tree       
Reading state information... Done

The following packages were automatically installed and are no longer required:
gtk2-engines-xfce libical2 libkeybinder-3.0-0 libxfce4ui-utils xfce4-appfinder xfce4-pulseaudio-plugin
Use 'sudo apt autoremove' to remove them.

The following packages will be REMOVED:
  orage* xfce4*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 5723 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
groucho@devuan:~$ 

When I tried to do a minimal Devuan installation on my Asus 1000HE (did not go too well for various resons) I started off without a desktop and added things along the way.
Installing xfce4 also brought along orage.

Devuan uses packages from the Debian repositories, just tailored so as not to need systemd.
Maybe it is a Debian thing?

Please let me know if I missed anything in the bug report.

Best,

D.

Offline

#9 2019-05-26 07:46:39

ozjd
Member
From: Hawkesbury NSW Australia
Registered: 2012-02-05
Posts: 560
Website

Re: Notifications not obeying 'dissapear after' setting

Devuan wrote:

I have tried to uninstall it but it takes xfce4 along with it.

This definitely a distro / packaging issue as it can be removed in Fedora without taking any other packages with it.

 dnf remove orage*
Dependencies resolved.
=====================================================================================================================================================
 Package                         Arch                             Version                                  Repository                           Size
=====================================================================================================================================================
Removing:
 orage                           x86_64                           4.12.1-11.fc28                           @anaconda                           5.7 M

Transaction Summary
=====================================================================================================================================================
Remove  1 Package

Freed space: 5.7 M
Is this ok [y/N]: n
Operation aborted.

Offline

#10 2019-05-26 10:23:24

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

Re: Notifications not obeying 'dissapear after' setting

Bug report is fine.

As @ozjd points out, this appears to be a debian-specific thing. Orage is packaged as part of the xfce4 meta-package.

I'm not too familiar with debian, so take this with a grain of salt. Since your autoremove list is small (these are packages that were installed via the xfce4 meta-package and the system wants to uninstall them because it _thinks_ you don't need them anymore) you can just manually re-install them to get them back. That will separate them from the meta-package.


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 ---

Offline

#11 2019-05-29 00:37:39

Devuan
Member
Registered: 2018-01-10
Posts: 27

Re: Notifications not obeying 'dissapear after' setting

Hello:

ToZ wrote:

Bug report is fine.

OK.
Thanks, I've only done it a couple of times, never at Xfce.

ToZ wrote:

... a debian-specific thing.
Orage is packaged as part of the xfce4 meta-package.

Indeed ...
I'ts been a really dumb confusion on my behalf.  =-/
Confusing package with meta-package and such.

I got this in my mailbox today:

--- Comment #1 from Simon Steinbeiss <ochosi@xfce.org> ---

The hardcoded times in xfce4-power-manager should be irrelevant (and only seen as fallback), xfce4-notifyd ignores them and uses the timeout configured by the
user instead for "normal" notifications and sets "critical" notifications to never expire.

OK ...

If xfce4-notifyd effectively ignores the hard-coded times in xfce-power-manager, why do I get a  8/10s notification on screen when I pullout the power plug from the netbook?
It only happens with xfce-power-manager.

What now?
Add more info to the bug report?

Please advise, foot in mouth risk and all that.

Thanks in advance,

D.

Offline

#12 2019-05-29 01:02:33

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

Re: Notifications not obeying 'dissapear after' setting

I've posted a comment in the bug report. I'll have a closer look at the power-manager as well.

Edit: and a couple of patch options to fix the issue.

Last edited by ToZ (2019-05-29 01:24:11)


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 ---

Offline

#13 2019-05-29 10:44:32

Devuan
Member
Registered: 2018-01-10
Posts: 27

Re: Notifications not obeying 'dissapear after' setting

Hello:

ToZ wrote:

I've posted a comment in the bug report. I'll have a closer look at the power-manager as well.
Edit: and a couple of patch options to fix the issue.

Saw the posts this morning.
Thank you very much.

I guess this will all eventually show up in an update further on?

Best,

D.

Offline

#14 2019-06-09 03:42:39

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: Notifications not obeying 'dissapear after' setting

Devuan wrote:

If xfce4-notifyd effectively ignores the hard-coded times in xfce-power-manager, why do I get a  8/10s notification on screen when I pullout the power plug from the netbook?
It only happens with xfce-power-manager.

I don't know what the determining factor is (or what they are, if multiple) in deciding whether a notification is classed as critical, but I'd think that a sudden loss of AC power would be critical, at least potentially.

Yes, the user can intentionally unplug the power cable. But someone can trip over it, a pet or child can remove it, or there might be a power failure in progress that the user is not aware of (I don't know, maybe because it's the middle of the day and artificial lights are not in use).


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 650.26 KiB (Peak: 683.1 KiB) ]