Bug 247936

Summary: system tray applications with opened window started twice
Product: [Plasma] plasma4 Reporter: Albert Hofkamp <alberth289346>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 4.5 and older   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: system tray picture

Description Albert Hofkamp 2010-08-15 10:43:28 UTC
Version:           4.4 (using KDE 4.4.5) 
OS:                Linux

If you leave a window of an application in the system tray open while logging out (and shutting down the computer), that application will be started twice on the next log in.


Reproducible: Always

Steps to Reproduce:
Run pidgin in the system tray, and leave the 'buddies' window of the program open when logging off (leave -> turn off).
(You may also want to set 'offline status on startup' to prevent problems with the remote servers due to multiple logins at the same time.)

I have also tried it with the workrave window that displays how much time there is left, and it behaves the same.

Actual Results:  
On the next log in, two instances of the program that had an open window at log out, are started.

Expected Results:  
Instead, starting just one instance of the program would be useful :)


I think that the following happens:

The applications of the system tray all get started.

In addition, the session manager tries to restore the windows by starting new applications, except that it does not realize that it should use applications of the system tray instead.
Comment 1 Albert Hofkamp 2010-08-15 10:48:11 UTC
Hmm, I forgot to mention that issue #189615 looks like another instance of this bug, except that issue blamed the Suse distro RPMs
Comment 2 Christoph Feck 2010-08-17 00:10:24 UTC
What do you mean with "Run pidgin in the system tray"? Are you using ksystraycmd?
Comment 3 Albert Hofkamp 2010-08-17 19:28:25 UTC
Created attachment 50663 [details]
system tray picture
Comment 4 Albert Hofkamp 2010-08-17 19:31:58 UTC
I don't think so, although I don't know what ksystraycmd is.
'ps aux | grep ksys' returns 'ksysguardd' but not ksystraycmd. I have attached a picture of the thing I mean. It is in the bottom panel of my desktop, and right-clicking on it (without any of the application buttons getting highlighted) gives options like "Remove this System Tray".
Comment 5 Christoph Feck 2010-08-18 20:36:14 UTC
Looks like a systray issue then. Reassigning.
Comment 6 Myriam Schweingruber 2012-05-17 14:03:04 UTC
Closing for lack of feedback. Please feel free to reopen this report if you can still reproduce this with KDE 4.8.3 or later.