Version: 1.11.1 (using 4.2.1 (KDE 4.2.1), Kubuntu packages) Compiler: cc OS: Linux (x86_64) release 2.6.27-11-generic I was using my second virtual desktop and I got an email, so I opened kmail by clicking on the system tray icon. For some reason this switched me onto the first virtual desktop. I closed kmail completely, then started it, this time on desktop 2, and closed the window, switched to desktop 1, then clicked on the system tray icon. This time it switched me to desktop 2 before opening the window. Activating the 'on all desktops' toggle before closing the window allows it to open correctly in another desktop, but this has to be pressed each time the window is closed.
I guess this is the intended behaviour of all kde applications. Just open on the last desktop where the application was used. The only strange thing is the 'on all desktops' resetting every time the application goes to system tray. That I confirm on kde 4.2.65.
*** Bug 187010 has been marked as a duplicate of this bug. ***
You can get your desired behabiour using the Special application settings (in the menu of the upper left corner of the window), marking in the Desktop tab, the option Desktop, All Desktops.
> guess this is the intended behaviour of all kde applications. I wondered about this, but all the other programs that I use act differently, opening in whatever desktop is active. It is possible that these are not following the rules, but I went with filing one bug report, over filing five. Thanks for the hack, it solves the problem at hand, but introduces a less annoying problem of kmail always following me across desktops.
*** Bug 187125 has been marked as a duplicate of this bug. ***
Firstly, thanks Jaime, the suggestion in Comment #3 does what I wanted. But (don't you hate that word!) it only affects the current KMail / Kontact instance. That property is lost on restart. So... 1) Right-click on the title bar / Configure Window Behaviour 2) Window Specific / New 3) Detect Window Properties / click within Kmail window / Use window class (whole application) 4) Geometry tab / Desktop / Remember / All Desktops 5) OK / OK Seems to work OK but may need some refinement - it's the first time I've used that part of KDE.
Oh, should have said in my previous post, happy for this Bug to be closed.
I don't think it should be closed. I think this KMail's default behaviour should not be default. It should open in the same desktop it is called by defauld, and should be possible to configure it to stay just in a fixed desktop. This default behaviour is only present in KMail, and I couldn't configure it to do what the bugs description asks for.
By the way, I think this bug may be related (duplicate?) of Bug 118262
Following #6 comment instructions does not work for me. It gets reset to the Desktop I had Kmail on instead of "All Desktops" :'(
It looks like this behaviour doesn't happen anymore with KMail 2. Testing it in KDE SC 4.6 Beta 1. Can anyone confirm?
Marking as resolved, since it’s been working for me for more than a year and there has not been further feedback since then.