Starting kteatime from the menu or krunner works flawlessly. But when adding an autostart entry multiple entries start to appear in the system tray. Sometimes up to 20 or 30 but usually less. I had this problem not just on Ubuntu but also on my previous Gentoo installation using various kde versions.
I suspect this is because this is in the .desktop file: X-KDE-StartupNotify=true Not entirely sure what it is for, but I suspect that krun believes kteatime will tell it that it has started somehow when that is true.
@Martin I tried all of these settings including simply starting `/usr/bin/kteatime` from a script. I always end up with a lot teacups in my tray.
Removing the autostart entry seems to fix the issue because kteatime is restored with the session. I don't know why I added the autostart entry in the first place. Maybe the session was not restored in one of my previous setups.