Bug 414208 - Cannot restore specific session
Summary: Cannot restore specific session
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: session restore (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Rosch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-16 18:27 UTC by avlas
Modified: 2025-04-03 12:53 UTC (History)
1 user (show)

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 avlas 2019-11-16 18:27:04 UTC
SUMMARY

I want to open a session from terminal with `--session <sessionId>` as directed in man konqueror

STEPS TO REPRODUCE
1. Save a Konqueror session, e.g. "current"
2. Close Koqueror
3. In Konsole, execute "Konqueror --session current"

OBSERVED RESULT

The following message is displayed in Konsole:

`org.kde.konqueror: Unknown class "" in session saved data!`

And konqueror does not open

EXPECTED RESULT

Konqueror should open and load the "current" session

ADDITIONAL INFORMATION

I realized that if I manually copy the session content from its location to the autosave folder, then opening konqueror loads the session.

This I think means two things:

- There is nothing wrong in the saved session and what fails is in the code restoring saved sessions, but not in the code that restores the autosaved session that works fine

- Adding the so claimed and popular feature request of restoring last open tabs in konqueror seems quite straightforward simply by implementing the two following steps:
 
 1. Avoid removing the content of the autosave folder on exit (if the option of reopening tabs is enabled)

 2. Exiting Konqueror (and its shortcut Ctrl+Q) should close the entire application (all konqueror windows) instead of the active window, which should rather be closed with Ctrl+Shift+W as in Firefox/Chromium.

This step is important because otherwise the session is changing while closing the different Konqueror windows, and then a user could restore no more than a single window.
Comment 1 Raphael Rosch 2025-04-01 13:56:21 UTC
Hi @avlas, can you confirm if this bug is still present for you? I am working on the session restore code, and can take a look if it is. Otherwise, let me know and we can close this bug. Thanks
Comment 2 avlas 2025-04-02 06:40:37 UTC
(In reply to Raphael Rosch from comment #1)
> Hi @avlas, can you confirm if this bug is still present for you? I am
> working on the session restore code, and can take a look if it is.
> Otherwise, let me know and we can close this bug. Thanks

I don't even recall this. I guess at some point it was fixed
Comment 3 Raphael Rosch 2025-04-03 12:53:02 UTC
Awesome. I will mark this as resolved then. Thanks!