Bug 191145

Summary: ksystraycmd changes plasma look
Product: ksystraycmd Reporter: Ruchir Brahmbhatt <ruchir.brahmbhatt>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: andresbajotierra, aseigo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Ruchir Brahmbhatt 2009-04-30 15:21:55 UTC
Version:           r961515 (using Devel)
Installed from:    Compiled sources

Platform:
OS: opensuse 11.1
Qt: 4.5.1
KDE: 4.2.71 (KDE 4.2.71 (KDE 4.3 >= 20090428))
Plasma Workspace: 0.3
kdelibs: r961515
kdebase: r961515


Steps to reproduce:
1. Open configure desktop.
2. Go to Advanced.
3. Click Autostart.
4. Click Add program.
5. Select evolution.
6. This opens properties of evolution.desktop.
7. Go to Application tab.
8. Click Advanced Options.
9. Select place in system tray.
10. Save settings. 
11. Restart kde.
12. A new cashew icon appears in system tray with tooltip "plasma-desktop".
13. Click this icon.

Expected result:
Clicking this icon should show/hide evolution.

Actual result:
Panel becomes dark and desktop becomes totally black. No wallpaper or widgets are showing up.
Comment 1 Aaron J. Seigo 2009-04-30 16:56:44 UTC

*** This bug has been marked as a duplicate of bug 181164 ***
Comment 2 Dario Andres 2009-05-23 17:45:51 UTC
This is not a duplicate of bug 181164. Reopening

Further analysis (?) revealed that the current implementation of ksystraycmd needs the "--window regexp" command line switch to capture the windows with "regexp" in their title. If this switch is not used, the first application will be taken.. In this case, the wID of the plasma desktop itself.

As users can't know which window title will have the Application when configuring a Autostart app (and the configure dialog doesn't provide an option to this), KSystrayCmd should take the windows of the PID of the application it started.

I created a patch to allow this and to fix another issues on ksystraycmd.. but it's a big patch so we can't allow it into 4.3 ....

Regards
Comment 3 Ruchir Brahmbhatt 2009-12-06 14:24:01 UTC
This works fine on kde 4.4 beta1.
Comment 4 Ruchir Brahmbhatt 2009-12-07 19:04:43 UTC
Sorry it doesn't work consistently. Sometimes it places pidgin or gnome keyring in system tray.
Comment 5 Dario Andres 2009-12-28 14:10:39 UTC
Closing as request of the reporter.
In any case, the root cause is the same as in bug 210970