Bug 323593

Summary: KDE restart opens desktop 1 windows on desktop 2
Product: [Applications] konsole Reporter: Frank Griffin <ftg>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: cfeck, cpigat242, justin.zobel
Priority: NOR    
Version: 2.11   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frank Griffin 2013-08-16 13:23:33 UTC
If you abort KDE with applications open on desktop 1, upon restart the applications will open on desktop 2.



Reproducible: Always

Steps to Reproduce:
Specifically, open and minimize a firefox window on desktop 1, then open a few konsole windows.  In one of the konsole windows, su to root and issue "systemctl reboot".  When the reboot completes,log back into KDE,and the interrupted apps will be opened on desktop 2.

Actual Results:  
Apps open on desktop 2

Expected Results:  
Apps open on desktop 1
Comment 1 Christoph Feck 2013-08-20 16:41:34 UTC
Can you name the KDE applications that are affected by this bug? From what I see, each application individually remembers on which screen it was closed.
Comment 2 Frank Griffin 2013-08-20 17:17:40 UTC
The only ones I can remember for sure are konsole and firefox.  Normally, when I shut down, I close everything on the higher desktops (2, 3, ...), but on desktop 1 I have konsole windows open and firefox running minimized.  I leave firefox minimized so that after reboot it will detect that it aborted and restore all my regular tabs, and I issue the "systemctl reboot" from konsole.

This happens for sure on my laptop, but I reboot my desktop machine infrequently enough that I can't recall whether it happens there or not.  So this may be the result of some configuration difference.
Comment 3 Christoph Feck 2013-08-20 17:52:57 UTC
Regarding Konsole windows, do you have them opened on multiple desktops? Konsole is actually a single process application, so if you have them on multiple desktops, it probably restores to where its last window was opened.

For the Firefox issue, please report it to Firefox developers.
Comment 4 Frank Griffin 2013-08-20 19:10:13 UTC
(In reply to comment #3)
> Regarding Konsole windows, do you have them opened on multiple desktops?
> Konsole is actually a single process application, so if you have them on
> multiple desktops, it probably restores to where its last window was opened.

If you're talking about opening multiple independent instances of konsole, yes, I do often have konsole instances open on multiple desktops.  If you're talking about opening one instance of konsole and flagging it to appear on multiple desktops, I've never done that.

> 
> For the Firefox issue, please report it to Firefox developers.

I'll hold off until it's clear what konsole is doing.  It's suspicious that two  (or more) apps should be exhibiting the same behavior if there isn't a common thread.  However, it may well be that FF doesn't care which desktop it restarts on, and ends up on desktop 2 just because konsole has made 2 the current desktop by starting there.  

I'll try to do some tests to dig into both of these.
Comment 5 Justin Zobel 2020-10-23 00:31:24 UTC
Can you please confirm this is still an issue on current KDE Plasma and Konsole.
Comment 6 Bug Janitor Service 2020-11-07 04:33:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Frank Griffin 2020-11-07 13:25:59 UTC
I had forgotten all about this.  These days, what I describe here doesn't happen.  In almost all cases, konsole windows open where they should.  VERY infrequently after a rough shutdown of Plasma the restart will dump every open window onto desktop 1, but after a reboot it's back to normal.

I'll close this as FIXED.