[Evolution-hackers] how to know whether evolution is online

Not Zed notzed@ximian.com
Wed, 02 Feb 2005 22:43:31 +0800


--=-syKyYvBR7NqTnejbcyU5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2005-02-02 at 08:55 -0500, JP Rosevear wrote:

> On Wed, 2005-02-02 at 16:01 +0800, Not Zed wrote:
> > On Wed, 2005-02-02 at 11:41 +0530, Sivaiah Nallagatla wrote: 
> > > On Wed, 2005-02-02 at 04:00 +0000, Not Zed wrote:
> > > > 
> > > > > Isn't there a gconf key that determines the state?  Or does that just
> > > > > determine the startup state?
> > > > 
> > > > The current state is stored in gconf, but it is NOT the appropriate
> > > > way to determine when it changes.
> > > > 
> > > > It is private data used by the shell only.
> > > Oh, Why it is not appropirate?, e-d-s also listnes to this key change to
> > > switch between online/offline modes.
> > 
> > Umm, thats pretty shitty then isn't it?
> 
> Why?  Really there should be a desktop wide setting for online/offline
> that is either a gconf key or arrives via DBUS.  If we rely on evolution
> to inform e-d-s, anything else using e-d-s externally may cause online
> operations.  It does suck that evolution is the only place to set the
> key right now.


Because its a bad, naive solution.

There is no way to do any cross-process synchronisation, or manage the
change in state in any sane way.

Using a gconf key is simply a trivial short-term hack that wont provide
the features necessary to do it properly.



--=-syKyYvBR7NqTnejbcyU5
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.5.3">
</HEAD>
<BODY>
On Wed, 2005-02-02 at 08:55 -0500, JP Rosevear wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Wed, 2005-02-02 at 16:01 +0800, Not Zed wrote:</FONT>
<FONT COLOR="#000000">&gt; On Wed, 2005-02-02 at 11:41 +0530, Sivaiah Nallagatla wrote: </FONT>
<FONT COLOR="#000000">&gt; &gt; On Wed, 2005-02-02 at 04:00 +0000, Not Zed wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; Isn't there a gconf key that determines the state?  Or does that just</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; &gt; determine the startup state?</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; The current state is stored in gconf, but it is NOT the appropriate</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; way to determine when it changes.</FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; &gt; It is private data used by the shell only.</FONT>
<FONT COLOR="#000000">&gt; &gt; Oh, Why it is not appropirate?, e-d-s also listnes to this key change to</FONT>
<FONT COLOR="#000000">&gt; &gt; switch between online/offline modes.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Umm, thats pretty shitty then isn't it?</FONT>

<FONT COLOR="#000000">Why?  Really there should be a desktop wide setting for online/offline</FONT>
<FONT COLOR="#000000">that is either a gconf key or arrives via DBUS.  If we rely on evolution</FONT>
<FONT COLOR="#000000">to inform e-d-s, anything else using e-d-s externally may cause online</FONT>
<FONT COLOR="#000000">operations.  It does suck that evolution is the only place to set the</FONT>
<FONT COLOR="#000000">key right now.</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
Because its a bad, naive solution.<BR>
<BR>
There is no way to do any cross-process synchronisation, or manage the change in state in any sane way.<BR>
<BR>
Using a gconf key is simply a trivial short-term hack that wont provide the features necessary to do it properly.<BR>
<BR>
<BR>
</BODY>
</HTML>

--=-syKyYvBR7NqTnejbcyU5--