Bug 421155

Summary: When adding an autostart entry for kteatimes multiple instances are started
Product: [Applications] kteatime Reporter: Boris Bigott <boris.bigott>
Component: generalAssignee: Stefan Böhmann <kde>
Status: RESOLVED NOT A BUG    
Severity: normal CC: martin.sandsmark
Priority: NOR    
Version: 20.04   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Boris Bigott 2020-05-07 14:02:31 UTC
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.
Comment 1 Martin Sandsmark 2020-05-30 20:35:31 UTC
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.
Comment 2 Boris Bigott 2020-06-04 10:50:10 UTC
@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.
Comment 3 Boris Bigott 2020-06-30 12:14:29 UTC
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.