Kate switching window size to default

I noticed, that when my monitor configuration changes (I have different second monitors at home and at work), kate always reduces the window size when it is first started with a changed monitor setup. Both secondary monitors btw. are of the same brand and model just connected through different interfaces (HDMI vs. USB-C and extension box).

What can be done to keep the last window size for kate? I don’t see this behavior in other KDE apps.

This is a known issue at the moment. Should affect other QtWidgets based KDE apps as well like Dolphin and Konsole. I need to fix it. The bug is somewhere in here: src/gui/kwindowconfig.cpp · master · Frameworks / KConfig · GitLab.

1 Like

Oh great! This should also fix SystemSettings, then. :slight_smile:

Is there any news on this? It’s a bit annoying that I have to resize that small Kate window every time I open a new window.

Hi all,
is there any news on this bug as of Feb 2025? It still seems to be unfixed at least for Kate only: after changing Display, Kate reverts its windows size to somewhat 640x480. The rest of the KDE applications don’t seem to be affected. As I’m switching configuration twice a day its getting a bit annoying.
Is there a file where I could at least change the default size to sth like 1024x786?
Kind regards
Norbert

Hi! I’m not seeing a current active issue in the KDE Bugtracking System related to Kate window sizes not being restored.

If you have a series of steps that can consistently reproduce the issue on your device, with current versions of KDE software, then it sounds like a good candidate for filing a bug report so it can be tracked: Get Involved/Issue Reporting - KDE Community Wiki

Dear @johnandmegh

Thank you for your quick reply and the link to the bug reporting portal. I appreciate now beeing part of the KDE/Linux community and will try to maybe contribute some little bug tracking. I was windows pro since 30 yrs and quite newbee on linux, but wouldn’t want to go back to the MS-World ever.

I went through the issue tool and read about always using the most recent version of the software suite.
I’m working on quite up-to-date Debian 12 Bookworm 6.1.0-30 and KDE installed/updated packet “kde-plasma-desktop” 5.27.5 on Wayland, but wouldn’t want to open backports for now.
For testing I set up a similar machine with Kubuntu LTS 24.04: KDE-Plasma-Version 5.27.12 on X11, Kernel-Version 6.11.0-17, leaving everything default.
Now for my own surprise: I had the same issue.
Steps:

  • Logged into system 15" 1920x1080 with two different users and resized Kate from 640x480 to somewhat bigger.
  • Logged off and on to check whether setting were saved: → size OK
  • Shut down an connected external display 24" 1920x1080
  • Logged in ONLY User 1 and found Kate reverted to 640x480 → resized to bigger size, logged off and on: → size OK
  • Sut down, disconnected 24" and relogged on with 15" display: User 1 AND also User 2 had Kate size reverted to 640x480, means User 2 without ever logging into another display configuration!

I now would assume that this issue should be reproducable by anyone with more than one display(?)

If someone can help solving this or tell me where to change default size to sth like 1024x768 I would be happy, even if this is outside user profile and would needed to be adjusted after every update :wink:

Kind regards
Norbert

P.S.: usually I’m starting Kate by double-clicking txt or sh files, if that makes any diff

Just as a couple of quick notes:

KDE software includes the Plasma desktop environment (the versions 5.27.5 or 5.27.12 you were seeing), as well as many other applications like Kate - a distribution providing up-to-date versions of one might not necessarily mean that they provide up-to-date versions of the other :slight_smile:

In general, if you’re looking for up-to-date versions of KDE software, you’ll need to look outside the Debian Stable or Kubuntu LTS (currently 24.04) repositories. Both of those distributions intentionally freeze the software versions that they provide in each release, to avoid changing features or behaviors for the lifespan of that release. As a result, both currently have KDE packages that are at least a year old.

Outside of changing distributions, one of the easier ways to try out newer versions of KDE applications is through Flatpak - for example, up-to-date versions of Kate are available through Flathub: Install Kate on Linux | Flathub