Bug 456782 - "Save tab layout to file" makes meaningless file
Summary: "Save tab layout to file" makes meaningless file
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-15 23:37 UTC by Luke-Jr
Modified: 2022-10-30 17:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2022-07-15 23:37:49 UTC
STEPS TO REPRODUCE
1.  On the menu, View->Save tab layout to file
2. Enter a filename and click OK

OBSERVED RESULT
File contains simply
{
    "Orientation": "Horizontal",
    "Widgets": [
        {
            "SessionRestoreId": 0
        }
    ]
}
no matter how many tabs are open.

EXPECTED RESULT
File should contain at least some data that could be useful for restoring them (without invisible local Konsole state that might be wiped on a clean OS reinstall)
Comment 1 Kurt Hindenburg 2022-09-26 23:38:21 UTC
This is not for tabs but for "splits" inside one tab.  Create a split, save it and then look at the json file.
Comment 2 Kurt Hindenburg 2022-10-30 17:54:07 UTC
Closing as I think there's some confusion about file - see my previous commit.

Perhaps not allow saving when there are no splits?