Bug 482954

Summary: konsole not remembering window size when the size in modified by click and drag (so outside of editing the panel in konsole settings)
Product: [Applications] konsole Reporter: prinon
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: beaux_monde, david, duha.bugs, nucleo, paul.0000.black, vasyl.demin
Priority: NOR Keywords: qt6
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 24.05
Sentry Crash Report:

Description prinon 2024-03-09 08:13:28 UTC
SUMMARY
In plasma 6 the konsole app does not remember the windows size even with the option enabled in the settings (the remember size optinon). If the size in configured in the profile settings, then konsole, when opened, respects the configured size, but if you change the size by click and drag (so not by entering concrete numbers in the profile edit part) the new size is not rememberd.
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. open konsole
2. 
3. 

OBSERVED RESULT
windows size is the default one as configured in the profile, not the one set by click and drag from the borders.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: arch linux/ plasma 6.0.1
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Paul Black 2024-04-21 07:52:58 UTC
I'm seeing the same on Fedora 40.
Comment 2 Serge Roussak 2024-04-27 07:29:59 UTC
https://invent.kde.org/utilities/konsole/-/merge_requests/991 fixes this issue.
Comment 3 Kurt Hindenburg 2024-05-10 16:29:38 UTC
Git commit 38a3efaa979a28c055a8bd3da6b107d8a1fc3bb7 by Kurt Hindenburg, on behalf of Serge Roussak.
Committed on 10/05/2024 at 16:29.
Pushed by hindenburg into branch 'master'.

Fixed the window geometry config file placement.

Since the window geometry placement was moved to the state config
files globally in KDE, exactly these files should be checked for
such configuration data (instead of the main application config file).
This issue may not been reproduced on the systems where the
'konsolerc' file remains filled by some old version of the konsole
so that it holds the window geometry. But on the fresh install, the
"Remember window size" option does nothing because the window geometry
is being stored in the '.local/share/konsole/konsolestaterc', but is
being looked up in the '.config/konsolerc' files.
Related: bug 481898

M  +1    -1    src/MainWindow.cpp

https://invent.kde.org/utilities/konsole/-/commit/38a3efaa979a28c055a8bd3da6b107d8a1fc3bb7