I've setup a Desktop entry in /.config/autostart/ to run a Tkinter Python script. I tried setting it up in rc.local but realized I had to load it after the GUI was up. It is working but it loads twice. Does anyone have any idea why it would load twice? I've tried numerous things and no matter what I do, it always seems to load twice.
Update - I modified my .desktop file and set it to launch Midori. I still experience the same thing and Midori launches twice. I verified the same thing happens on my other Raspberry Pi running raspbian wheezy.
I also noticed that if edit the Desktop Session Settings and uncheck Midori, neither instance is launched. It seems like something with LXDE being launched twice but I have no idea where to look.
Update- After digging into this further I check the running processes and it looks like LXDE stuff is getting launched twice somehow. I have the following processes listed twice:
/usr/bin/lxsession -s LXDE -e LXDE
/usr/bin/dbus- launch --exit-with-session x-session-manager
/usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
openbox --config-file /home/pi/.config/openbox/lxde-rc.xml
lxpanel --profile LXDE
pcmanfm --desktop --profile LXDE
I verified similar results on my other pi running wheezy.