Bug 134893

Summary: NetworkManagerInfo and the panel-icon life-cycle
Product: [Fedora] Fedora Reporter: Jonathan Blandford <jrb>
Component: NetworkManagerAssignee: John (J5) Palmieri <johnp>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: ddumas, jkeck
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-06 18:40:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Blandford 2004-10-07 00:31:24 UTC
NetworkManagerInfo currently controls the NetworkManagerNotification
process in an unsophisticated fashion.  It should make sure that when
it quits, it kills the icon.  It should also monitor the icon for it
dying as well.  Finally, it should kill the icon when we're in an
uninteresting state (Wired only).

Comment 1 Jonathan Blandford 2004-10-07 21:27:01 UTC
After a discussion here, here is what needs doing for the life cycle:

 * NetworkManager is considered 'on' if it's running.  The way to
enable it is to do 'service NetworkManager start', or use chk-config.

 * NetworkManagerInfo is always started at the beginning of the user's
session.  If NetworkManager isn't running, it exits.

 * NetworkManagerInfo needs to install a desktop file so that it gets
added to the user's session.  Ray can probably help get this right.

 * NetworkManagerInfo needs to monitor the state of network devices. 
If we have just wired devices, then we need to kill the panel icon
after a certain time (say 20-30 seconds).

 * The panel icon needs to exit if NetworkManagerInfo dies or is
restarted.

 * NetworkManagerInfo needs to restart the icon if it dies or is
killed.  It should guard against starting it too many times.  Also,
this behaviour is incompatable w/ something like bugbuddy so we'll
have to disable that.

Comment 2 Dan Williams 2004-10-08 05:51:08 UTC
> * The panel icon needs to exit if NetworkManagerInfo dies or is
restarted.

Done and committed to gnome.org CVS.  I currently call exit(), but
there's probably a better way?

Comment 3 John (J5) Palmieri 2004-10-08 18:21:48 UTC
exit change to gtk_main_quit in CVS

Comment 4 Jonathan Blandford 2004-10-08 19:17:41 UTC
exit() should be fine.

Comment 5 John (J5) Palmieri 2004-10-08 21:17:47 UTC
> If NetworkManager isn't running, it exits.

Done.  We exit in 30 seconds if NetworkManager goes down.  If
NetworkManager is not available when NetworkManagerInfo starts, we quit.