KDE apps remembering size and position?

Hello,

I start to see some applications that remember their position and size when closing/ropening them, but none are among the native KDE application I frequently use (Disover, Dolphin, KClock, etc) that always reopen in the middle of the 1st monitor each time on my KDE Fedora 44.

I understand that it is up to the individual apps to give directives to Wayland on where they are to be reopenned. I also understand that KDE is working on a session restore.

So, will the individual KDE application implement the “remember where to open me” in addiion to the restore session?

There are many discussions about it:

There will be an implementation to let KDE apps have this feature built-in or easily opt-in at some point and more generally for Qt applications.
This is being worked one.

Hi,

Welcome on the forum.

For the window position have a look here

Have fun with KDE :-)

The current implementation doesn’t allow for proper placement for multiple instances of the same app.

Tentative solution using Qt 6.12

Thanks for the warm welcome :grinning_face:

I also really appreciated the instructions you gave me!

It is not exactly what I was looking for (reopen where I closed them last) but it works for 80% of my apps (as I always place these always on the same spot). I’ll gain a lot of time even though it does not cover 100% of my needs.:victory_hand:

This is great news that developers are working on this issue.

Do you know when it will be available?

It’s definitely inching forward. In Plasma 6.8.2, if I do:

qdbus6 org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession

On the next login, sometimes, some applications get restored.

I have a application I wrote which obeys the save/restore requirements. With the above it sometimes get restored on login, but not always. The application includes a setting to force it to run in Xwayland, with that enabled, it always get restored in every respect. That kludge that might work for other applications too.

I can’t blame the KDE developers for the Wayland folk kicking the can down the road on the fundamental hard problems.

I’m sitting here in Plasma 6.8.2 Wayland, and it’s definitely nice. Aside from Window positioning management, everything I needed to do with X11 is functional.

I’m hedging my bets. I’ve set up a dual boot of a EndeavourOS with SonicDE, the X11-only fork of Plasma. Its seems equally nice - bit less bling perhaps. I’m torn on which way to go, time will tell.

If there was an ETA I would have told you.

Work needs to be done, it takes time.
I am hoping by Plasma 6.9, no guarantee. It could be fixed in Plasma or KDE Frameworks, how to fix it is not full decided AFAICT.