This seems to be trickier than I thought. Using the same code in src-session/ (for indicator-applet-session) as in src/ (for indicator-applet) works fine, and the applet hides itself under stracciatella. However, this is "running enough" to tell the panel to not show the log out/shutdown entries any more.
So either we need to adapt the gnome-panel code for this as well and only hide the menu entries if the applet is really running, or we need a better way to terminate the applet without triggering the "unexpected quit" gnome-session complaint.
This seems to be trickier than I thought. Using the same code in src-session/ (for indicator- applet- session) as in src/ (for indicator-applet) works fine, and the applet hides itself under stracciatella. However, this is "running enough" to tell the panel to not show the log out/shutdown entries any more.
So either we need to adapt the gnome-panel code for this as well and only hide the menu entries if the applet is really running, or we need a better way to terminate the applet without triggering the "unexpected quit" gnome-session complaint.