Bug 440903 - Konsole not respecting initial window size set in profile even when the "remember window size" option is disabled
Summary: Konsole not respecting initial window size set in profile even when the "reme...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.08.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-12 18:02 UTC by Om
Modified: 2024-06-06 06:06 UTC (History)
6 users (show)

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


Attachments
Konsole starts with 230 columns (full width) instead of 160 (41.72 KB, image/png)
2021-08-13 08:17 UTC, Adrien Beau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Om 2021-08-12 18:02:35 UTC
SUMMARY

The recently updated version of Konsole does not respects the "Initial window size" set in the profile settings even when the option to "Remember window size" is disabled.

Additionally, since only the horizontal dimension of the Konsole window is affected (which extends over the entire screen) and not the vertical one, my guess is that this is somehow related to bug https://bugs.kde.org/show_bug.cgi?id=440902.


STEPS TO REPRODUCE
1. Disable "Remember window size" in Konsole>Settings>Configure Konsole and press OK.
2. Add a custom "Initial terminal size" (preferably 80x50) in Konsole>Settings>Edit Current Profile>General and press OK.
3. Close all running Konsole windows and start a new Konsole instance.

OBSERVED RESULT
Initial Konsole window size is 1366x50 (the horizontal dimension may vary depending upon ones screen resolution).

EXPECTED RESULT
Initial Konsole window should be of the size mentioned in the profile settings (in this case 80x50).


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.22
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
--
Comment 1 Adrien Beau 2021-08-13 08:16:41 UTC
I can confirm Konsole now starts with maximum screen width (2560 px in
my case) and cannot be resized to a smaller width, when configured not
to memorize window size. I find this a serious regression.

It is possible this is caused by the absurdly long labels next to the
icons in the main toolbar (see attached screenshot).

Right-clicking in the toolbar to configure it to "icons only" does not
solve the issue. Right-clicking the menu to remove the toolbar does not
solve the issue. Once the window is too wide, it cannot be horizontally
resized. Restarting Konsole brings back the toolbars and their long
labels.

Workaroung: configuring Konsole to remember window size, remove the
toolbars if need be, then restart Konsole.

However, as soon as you configure Konsole not to remember window size,
the problem is back. For now, I consider the "initial window size"
feature broken.
Comment 2 Adrien Beau 2021-08-13 08:17:56 UTC
Created attachment 140686 [details]
Konsole starts with 230 columns (full width) instead of 160
Comment 3 Nate Graham 2021-08-13 14:50:00 UTC
This is because it's auto-sizing the window to accommodate those toolbar buttons with the ridiculously long text. The text length is quite absurd. I think we need to just remove them from the default toolbar. They were added to advertise the new features, but this is generally a bad idea. My bad, sorry.
Comment 4 Félim Whiteley 2021-08-13 16:04:34 UTC
(In reply to Nate Graham from comment #3)
> This is because it's auto-sizing the window to accommodate those toolbar
> buttons with the ridiculously long text. The text length is quite absurd. I
> think we need to just remove them from the default toolbar. They were added
> to advertise the new features, but this is generally a bad idea. My bad,
> sorry.

I'm seeing this but the opposite way around. I've tried setting the size to fixed by unchecking the remember size option and setting in the profile a fixes 181x31 terminal size. I want toolbars off, with the application menu up on the window decoration. This ends up with the toolbars reappearing (as per this REALLY annoying but https://bugs.kde.org/show_bug.cgi?id=430036 ). So if I then rell it to remember size, right click the application menu and uncheck menubar and sessionbar they stay gone, but the konsole shrinks down to 87x30 (or close on it anyway). 

So it neither remembers that I want the toolbars off or the size of konsole. Something seems broken here...
Comment 5 Om 2021-08-14 07:22:24 UTC
(In reply to Nate Graham from comment #3)
> This is because it's auto-sizing the window to accommodate those toolbar
> buttons with the ridiculously long text. 

A proof that this ought not have been an issue is that the terminal size---with the toolbar---can be manually resized after it has opened.

> I think we need to just remove them from the default toolbar. They were added
> to advertise the new features, but this is generally a bad idea. My bad,
> sorry.

I think that it is a good idea to advertise new features in such a way. Please let it be. However, that should not override the initial window size as specified in the profile settings. In spite of that, since this issue did crop up, it might imply that something else is broken.

While reporting this bug, I had found a similar bug that was reported in 2015 (I can't seem to find it now) and had been marked as "fixed". My guess would be that the patch to that issue was somehow modified over the years resulting in this edge case.
Comment 6 Adrien Beau 2021-08-19 17:16:12 UTC
> A proof that this ought not have been an issue is that the terminal
> size---with the toolbar---can be manually resized after it has opened.

Actually, there is an issue somewhere.

The following is buggy on my computer:

- Set Konsole *not* to remember the window size
- Konsole window starts extremely wide
- Vertical window borders *cannot* be moved with the mouse after it has
  opened (the cursor does not change to a "resize" icon when hovering
  over the left or right border)

However, I just noticed other means of resizing the window do actually
work:

- Maximizing then restoring the window
- Using the window menu
- Dragging the corners of the window

Once the window has been resized, the vertical borders can again be used
to resize it.
Comment 7 Gabriele Tozzi 2022-03-06 10:50:23 UTC
Same issue here. Worked it around by removing all the tool bars.
Comment 8 TaylanTatli 2022-06-19 02:01:43 UTC
I have same problem. Removing toolbars worked. But I only had 4 icon and no label. It's weird.
Comment 9 Adrien Beau 2024-06-06 06:06:01 UTC
This is fixed, the issue does not happen anymore in Konsole 24.05.0,
even when displaying the toolbars.