Bug 367737 - restoring session adds an extra konsole window and doesn't always respect windows placement
Summary: restoring session adds an extra konsole window and doesn't always respect win...
Status: RESOLVED DUPLICATE of bug 367447
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: triaged
: 369624 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-23 20:46 UTC by Frederic Roussel
Modified: 2018-11-14 19:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Roussel 2016-08-23 20:46:50 UTC
konsole - 16.08.0
Kubuntu xenial
Neon stable packages
nVidia driver 367.35

dual heads: primary 27" landscape secondary 20" portrait (left of primary)

I'm using  6 konsole windows on 1 desktop, on the primary (27") screen, in 2 rows of 3 windows.

When restoring session, say at boot up time, I get an extra konsole (center up against top edge)  on the other screen, that is the 20" portrait on the left of the primary display.
Everything I type in this window is mirrored inside one of the 6 other windows. If I type in that window (where the mirroring happened), it will in turn be mirrored in the extra window.

The 6 windows are not restored in the same order they were right  before the session got terminated.
The concept of what I call "order" is tied to the fact that konsoles can remember the current path for their shell.

So if I terminate the session with:
[ k1 - path1 ] [ k2 - path2 ] [ k3 - path3 ]
[ k4 - path4 ] [ k5 - path5 ] [ k6 - path6 ]

I might obtain the following session restored:
[ k1 - path5 ] [ k2 - path2 ] [ k3 - path4 ]
[ k4 - path6 ] [ k5 - path3 ] [ k6 - path1 ]
and an extra "mirrored" window

Sometimes (though more rarely) I get only a few konsoles restored (again not respecting the original "order")
An extra konsole (still "mirrored") on the left screen
The remaining konsoles are restored in other desktop, following the kwin window creation rule, in my case centered.

Workaround:
none that I can think of with konsole
so I end up using xterm with some real ugly bachrc stuff to keep track of current path.

Reproducible: Always

Steps to Reproduce:
1.create 2 rows of 3 konsoles
2.execute "cd /some/where" in each of them
3.reboot
4.log in again

Actual Results:  
one extra window - in my case on the other screen" - that will mirror one of the restored konsoles
konsole windows restored don't have the same current path as the ones before reboot, with respect to their actual position
sometimes a few of the restored konsole are stacked in another desktop 

Expected Results:  
same number of konsoles
restore them in the same position, i.e. for a given position, the shell current path must remain the same.

that was working with KDE4. I see the bug only now, as "konsole" was basically unusable with my set-up before that.

Not the same bug, but some common points with https://bugs.kde.org/show_bug.cgi?id=365449
Comment 1 Wolfgang Bauer 2016-08-23 22:49:27 UTC
The extra konsole window has already been reported as bug#367447.

The window placement and cd paths on session restoration seem to work fine here (I don't leave 6 konsole windows open though), but that extra window does interfere/break it, as it basically is a "duplicate" of another window.
Comment 2 Julian Steinmann 2018-10-30 19:13:40 UTC
*** Bug 369624 has been marked as a duplicate of this bug. ***
Comment 3 Blase Johnson 2018-10-30 19:25:20 UTC
Does this issue still exist for you?
Comment 4 Bug Janitor Service 2018-11-14 11:33:09 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 5 Wolfgang Bauer 2018-11-14 19:55:23 UTC
As I already mentioned, it's probably caused by bug#367447.

Closing as duplicate therefore, please reopen if you disagree.

*** This bug has been marked as a duplicate of bug 367447 ***