GNOME Bugzilla – Bug 336933
nm-applet exits when the GNOME panel crashes
Last modified: 2007-12-31 15:41:26 UTC
backtrace: 0xb75f4963 in IA__g_object_unref (_object=0x0) at gobject.c:1721 1721 old_ref = g_atomic_int_get (&object->ref_count); (gdb) bt
+ Trace 67402
*** Bug 331634 has been marked as a duplicate of this bug. ***
Hmm. How do other applets detect and recover from panel crashes?
This bug is confirmed on launchpad (ubuntu bugtracker) https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/20176 note that the process also stops when the notification area is removed from the panel, it does not require a panel crash see the bug below: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/114580 As for the detection, you might want to check out the ubuntu update manager or gnome power manager, both of which have icons in the notification area and both of which do not suffer from this bug.
From my own use of GtkStatusIcon, you don't need any detection. It's actually more work to quit when the icon unmaps.
I think we should also mention here that Alex did not observe a crash but exit status 0. Alex, can you comment whether you crashed the panel to observe this or whether you simply killed the panel process?
I killed the panel process. You can also simply remove the notification area.
*** Bug 463495 has been marked as a duplicate of this bug. ***
Should this be retitled to something like 'nm-applet exits when the system tray disappears'?
Yes.
This was fixed by bug 379914, only on HEAD.