GNOME Bugzilla – Bug 518103
evolution does not check online status at startup
Last modified: 2008-04-26 14:49:00 UTC
evolution does not check online status from networkmanager at startup, it seems to remember the last state use and start there first.
Confirming, I've seen this myself.
Bumping version to a stable release.
EShell defines these offline states: E_SHELL_LINE_STATUS_OFFLINE E_SHELL_LINE_STATUS_FORCED_OFFLINE I'm not sure why we still need this distinction; EShell itself treats both states equally as far as I can tell. Anyway, when NetworkManager signals a device is now active, Evolution's NM listener is only checking for STATUS_OFFLINE. But if I manually disable networking, Evolution puts itself in STATUS_FORCED_OFFLINE. Thus, when I enable networking again, Evolution's NM listener ignores the signal.
Created attachment 107302 [details] [review] Proposed patch Fixes the issue and cleans up the code a bit in both e-shell-nm.c and e-shell-nm-glib.c. As an aside, libnm-glib is deprecated. Perhaps we should just drop e-shell-nm-glib.c?
Matt, I think I introduced this regression, while I fixed the issue of "unable to start evolution in offline with evolution --offline. It start in online". But with your patch, again it fails to start in offline. I think we need to take care of both.
Okay, I'll have a look at what you changed and then take another shot at this.
*** Bug 525616 has been marked as a duplicate of this bug. ***
*** Bug 526544 has been marked as a duplicate of this bug. ***
Created attachment 109428 [details] [review] Proposed patch that keeps --offline working Hi, Here is a patch that keeps --offline working in my tests. I'd be happy to work to improve improve it if anyone has any comments. Thanks, James
James, your patch works well in all scenarios I tested. I will review it today and try to take it for the next release.
Commit to stable/head.
*** Bug 529201 has been marked as a duplicate of this bug. ***
Patch committed to stable branch (gnome-2-22) as r35419 http://svn.gnome.org/viewvc/evolution?view=revision&revision=35419 Patch committed to SVN trunk as r35420 http://svn.gnome.org/viewvc/evolution?view=revision&revision=35420