Should (Python) applets be listed in ~/.gnome2/session?



I'm still grinding my teeth on an annoying (and difficult-to-reproduce-
elsewhere) crash bug in my (python) GNOME applet that gets triggered
when I log off.

I was looking at my ~/.gnome2/session file, and a couple of things
looked a little odd.  I was hoping if wiser folks would know if it is
indeed symptomatic of a bug, or just how it's meant to work.  In
particular, it starts off:

------------------------------------
[Default]
0,id=117f000001000111270746400000092580006
0,Program=deskbar-applet
0,CurrentDirectory=/
0,CloneCommand=deskbar-applet --sm-config-prefix /deskbar-applet-slm5CH/
0,RestartCommand=deskbar-applet --sm-config-prefix /deskbar-applet-
slm5CH/ --sm-client-id 117f000001000111270746400000092580006 --screen 0
1,id=117f000001000111270746400000092580007
1,Program=deskbar-applet
1,CurrentDirectory=/
1,CloneCommand=deskbar-applet --sm-config-prefix /deskbar-applet-8s3qEd/
1,RestartCommand=deskbar-applet --sm-config-prefix /deskbar-
applet-8s3qEd/ --sm-client-id 117f000001000111270746400000092580007 --
screen 0
2,id=117f000001000111270746200000092580002
2,RestartStyleHint=2
2,Priority=40
2,Program=nautilus
2,CurrentDirectory=/home/test
2,CloneCommand=nautilus --sm-config-prefix /nautilus-yy5zAG/
2,RestartCommand=nautilus --sm-config-prefix /nautilus-yy5zAG/ --sm-
client-id 117f000001000111270746200000092580002 --screen 0 --no-default-
window
------------------------------------

the thing to notice is that my applet ("deskbar-applet") appears twice:
at "0,Program=" and "1,Program=", even though I only have one instance
of the applet on my panel.

My questions are (1) is it suspicious that there is a double-entry, or
is this just normal?

And, (2), should applets even be session-managed?  If so, do I have to
do anything special to respond to the "--sm-config-prefix" and "--sm-
client-id" args?  These aren't command line args (since my command line
is actually "python /usr/libexec/deskbar-applet.py" and not just
"deskbar-applet"), these are bonobo args, right??  I am just using
whatever PyGTK does with applets, which may or may not do The Right
Thing - I haven't nosed too deeply into it yet.

There is Red Hat's "rhn-applet" in my ~/.gnome2/session, but none of my
other applets are mentioned, such as multiload-applet, wnck-applet, or
clock-applet.


tia,
Nigel.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]