Guest, Thursday 21 October 2010 à 17:27
|
|
|
On my laptop, checking mail on startup is a hit or miss. Sometimes mail is checked, other times it's not. Could it be that network manager is not fast enough to connect to wlan? This isn't a problem on my desktop with a wired connection.
I changed my Cairo startup line to: sh -c "sleep 10; exec cairo-dock -c"
and the Mail applet checks mail on startup without fail. But this affects the whole Cairo program's startup time.
I'd like to suggest adding an option for fine-tuning of delay in the Mail applet.
Behaviour
Check mail account on startup? wait [0 ] /
The user enters a number in seconds to wait before checking mail, where '0' is default for 'no wait'. |
fabounet, Thursday 21 October 2010 à 18:00
|
|
Subscription date : 30 November 2007
Messages : 17118
|
this is your wifi for sure, as you guessed.
I could add such an option, but I would have to add it to any applet connecting to the net (weather, rss-reader, etc).
possibly, we could re-check after 20s if the first try was unsuccessful (or you can middle-click on the applet to force the reload)
maybe using network-monitor would be a good idea but I found it doesn't work so great. |
Guest, Thursday 21 October 2010 à 23:25
|
|
|
fabounet : this is your wifi for sure, as you guessed. :)
I'd like to think this is not happening to me alone. I don't want to blame my wireless G setup as the reason because I'm getting 5 bars excellent signal from 6 feet away. Establishing wireless connection is fast but not always fast enough (like in wired connection) for what the Mail applet demands for checking mail on startup. It could be the startup programs (cairo, screenlets, wallpaper changer, radio tray etc.) all loading at the same time and fighting for cpu resource during bootup that's causing an intermittent delay in establishing wifi connection.
fabounet : I could add such an option, but I would have to add it to any applet connecting to the net (weather, rss-reader, etc).
I noticed that by disabling & enabling Network, Weather seems to have Retry already in place so it is not affected. RSS Reader already made it obvious with the 'No data (no connection?)' bold message that it needs to be manually Refreshed.
fabounet : possibly, we could re-check after 20s if the first try was unsuccessful
This is something I'm hoping you could add to the Mail applet. Or like what I suggested, to give the user the ability to manually fine-tune the amount of delay if necessary, that is specific to their setup. A simple user-adjusted delay can do away with re-check routines. |
Subscription date : 26 October 2008
Messages : 1904
|
yeah i ve noticed as well. Maybe you could have a look at how is doing the gnome-calendar applet. For the weather status it is able to display it just after the internet connection is found... |
Guest, Saturday 23 October 2010 à 05:46
|
|
|
taiebot65 : yeah i ve noticed as well. Maybe you could have a look at how is doing the gnome-calendar applet. For the weather status it is able to display it just after the internet connection is found...
I looked at the calendar applet (the one in the extras?), and I don't see it accessing the net. My dirty solution is to put a 10 second delay on the cairo startup entry to give enough time for the network to establish connection with wlan. It makes 'check mail on startup' work every time and it probably benefits any other applets that require net access on startup. |
Subscription date : 26 October 2008
Messages : 1904
|
No i am talking about the gnome applet, nothing to do with cairo-dock But it seems far quicker to find the status when the connection is found, and when the connections is lost it does not update the status, so i am not loosing the weather infos. |
fabounet, Monday 25 October 2010 à 12:06
|
|
Subscription date : 30 November 2007
Messages : 17118
|
I thought that the weather applet kept the latest icons if the connection was off.
anyway, I add a task on this topic to find a better way to check connection. |
Guest, Monday 25 October 2010 à 17:27
|
|
|
fabounet : I thought that the weather applet kept the latest icons if the connection was off./quote]
I was simulating a delay in establishing network connection during startup by disabling/enabling network, and my comments were how the weather and RSSreader reacts to this.
Screencast: http://www.screencast.com/t/j0EOrvrzP
Notice that weather applet is still able to automatically refresh data and display a forecast after 15s of no network connection. More than 15s and it will just show 'Na' until it is manually refreshed or the 15m refresh time has passed.
When my laptop boots up and it encounters a very brief delay (not always) in wlan connection, the mail applet is unable to execute on 'check mail on startup' but the weather applet will go from 'Na' to displaying a forecast because it has a 15s window to retry reloading data. This is why I put a 10s delay on cairo startup entry to get the mail applet to 'check mail on startup'.
Thanks for adding a task on this topic. If you have time, please comment on my other subject about the slider applet. Why it takes over a minute for slider to show a random picture on startup when other programs like gphotoframe & slideshow screenlet can do it almost instantly? I resorted to using the modded slideshow screenlet that shows a white border with drop shadow around the picture, but I would have preferred to use slider if it doesn't have these problems. |
Tofe, Tuesday 26 October 2010 à 09:11
|
|
Subscription date : 09 February 2008
Messages : 921
|
What we could perhaps do, is to have a way for the applet that need a connection to be activated/initialized only when a connection becomes available, or when a timeout (let's say 1min) is reached.
I guess it would be possible to say that "my plugin is a plugin that needs a connection to show something interesting", let's say in its configuration... what do you think, fab? |
fabounet, Tuesday 26 October 2010 à 14:59
|
|
Subscription date : 30 November 2007
Messages : 17118
|
watching NM signals on dbus should tell us when the connection comes back.
otherwise, it's hard to say whether the connection is down, or just the site you try to connect to is down.
about Slider: sorry I didn't reply the topic, but I've read it and made some changes already.
I think that reading the EXIF data is what takes so long, so I've moved it into a second thread that is run after the first one.
so it's probably much faster now (although probably not as fast as using a .db file)
if you have the opportunity to test it, your feedback is welcome  |
Guest, Saturday 18 June 2011 à 19:49
|
|
|
!!! Don't forget the Anti-spam filter !!! fgf |
|