Bug 505804

Summary: FEATURE REQUEST - layout save/load should respect size of views
Product: [Applications] konsole Reporter: Dmitry L. <dim0xff>
Component: split-viewAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch: add currentSplitterId and currentViewId DBUS methods

Description Dmitry L. 2025-06-19 18:29:32 UTC
Created attachment 182400 [details]
patch: add currentSplitterId and currentViewId DBUS methods

Hello!

It is actually is not a bug.

I'd like to restore saved layout with sizes it was saved. Currently it is only saves views (vertical or horizontal split).

As I see there is DBUS method which could be used to resize splits: org.kde.konsole.Window.resizeSplits.
And it requires Splitter ID and sizes (percentages).
But it is useless until there are no methods to retrieve current Splitter ID.

Also there are some number of methods which require View ID.

Here is the patch which adds currentSplitterId and currentViewId methods.
Hope it will be useful.

So, I open konsole and run script to setup layout (with required sizes).

PS made patch on v25.04.2 tag (2055fba96d88dbde92cdec83a146ac49c997a61e).