Bug 461780 - Add option to restore tabs upon restart
Summary: Add option to restore tabs upon restart
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.08.1
Platform: Other Linux
: HI wishlist
Target Milestone: ---
Assignee: Konsole Bugs
URL:
Keywords:
: 456316 474350 483057 492662 500132 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-11-13 17:38 UTC by Ralf Jung
Modified: 2025-11-30 15:19 UTC (History)
17 users (show)

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


Attachments
attachment-372744-0.html (1.02 KB, text/html)
2025-02-17 18:00 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2022-11-13 17:38:02 UTC
SUMMARY

It'd be nice to be able to restart the session or machine without losing the open tabs in Konsole. Most applications (e.g. Dolphin, Firefox) have that feature.

In the past, X11 session management served this purpose, but with wayland that is not a thing any more, so it'd be great if Konsole implemented something like this itself.
Comment 1 Kurt Hindenburg 2022-11-25 03:11:09 UTC
I notice firefox restarts automatically but not konsole
Comment 2 John Kizer 2025-02-15 21:42:40 UTC
*** Bug 456316 has been marked as a duplicate of this bug. ***
Comment 3 John Kizer 2025-02-15 21:42:52 UTC
*** Bug 474350 has been marked as a duplicate of this bug. ***
Comment 4 John Kizer 2025-02-15 21:44:11 UTC
*** Bug 492662 has been marked as a duplicate of this bug. ***
Comment 5 John Kizer 2025-02-15 21:44:40 UTC
*** Bug 483057 has been marked as a duplicate of this bug. ***
Comment 6 Yuri 2025-02-17 17:48:46 UTC
This function should save the tab set every time it changes, not just in the end of the session, just like modern browsers do.
If konsole is killed and re-started the tabs should be restored.
Comment 7 tcanabrava 2025-02-17 18:00:39 UTC
Created attachment 178489 [details]
attachment-372744-0.html

thats a worthy improvement, ill do my best to implement it

On Mon, 17 Feb 2025 at 18:49 Yuri <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=461780
>
> --- Comment #6 from Yuri <yuri@tsoft.com> ---
> This function should save the tab set every time it changes, not just in
> the
> end of the session, just like modern browsers do.
> If konsole is killed and re-started the tabs should be restored.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 8 John Kizer 2025-02-28 05:33:45 UTC
*** Bug 500132 has been marked as a duplicate of this bug. ***
Comment 9 Shai 2025-07-21 19:41:50 UTC
I'm not sure about the intention, but I suspect this bug should depend on https://bugs.kde.org/show_bug.cgi?id=436318.
Comment 10 Petr Tesařík 2025-11-30 15:19:07 UTC
I ran into a similar bug as a regression when migrating from X11 sessions to Wayland sessions (bug 512713). It seems that the scope of this bug is slightly different, but you may want to keep in mind that there is already some logic in Konsole to restore individual tabs. Restoring works even in a Wayland session, but saving works only in X11 sessions.

Even if you decide that the existing feature is not worth fixing for Wayland (e.g. because you want to supersede it with this new feature), consider identifying the code and removing it to reduce duplication and bloat.