You are not logged in.

#1 2012-05-16 02:25:06

ngagun
Member
Registered: 2012-05-07
Posts: 17

xfce4-weather-applet does not update frequently

The subject line pretty much says it all. The xfce4-weather-applet does not update frequently. It doesn't update when I resume from suspend, and generally it doesn't update very often. Does anyone know how to make it update more frequently?

Offline

#2 2012-05-16 04:43:37

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: xfce4-weather-applet does not update frequently

The timeouts are hard coded. Search the source for "TIMEOUT" and just lower the value there.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-05-16 13:04:42

ngagun
Member
Registered: 2012-05-07
Posts: 17

Re: xfce4-weather-applet does not update frequently

Okay, I saw that too and can do that. How about updating on resume? Is there a way to call the applet from say a pm script and tell it to update as part of the resume process?

Offline

#4 2012-05-16 18:21:58

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: xfce4-weather-applet does not update frequently

You can restart the panel from a pm script which would necessarily update all the applets but it would be slow. What you want is inter-process-communication. A number of solutions for this exist - most notably dbus. A poor man's way would be making the weather plugin check for the existence of a file (my package alltray-scriptable in the AUR does this). Or you could give it a signal handler for SIGUSR1.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-05-16 21:05:20

ngagun
Member
Registered: 2012-05-07
Posts: 17

Re: xfce4-weather-applet does not update frequently

Hmmm, well I can probably update the TIMEOUT and recompile without too much trouble, but the rest seems like more work than I was hoping for! I was hoping that panel apps might take an argument when called that would tell them what to do (e.g. refresh). Thanks for your help in any case.

Offline

Board footer

Powered by FluxBB