You are not logged in.

#1 2020-06-18 06:19:11

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Konsole does not start after reboot into previous session

Hello,

I have the following problem: Assume, I have a konsole session with various tabs at different working folders. I want to restore this window with all tabs and all working directories upon relogin after e.g. a reboot.

On one machine, I am using, this is working as expected. I can reboot and the very same number of tabs are greeting me after the login.

On another machine, the konsole program is not started at all after a login. If I manually start konsole only a single window with a single tab located at my home folder is shown. This is the very same behavior as if I opened a new window.

Both machines are running Archlinux with a "comparably" version of the programs. There might be small differences in the version between the machines due to differnt time points of the update but the problem persists quite some time ago.

Do you have any idea where the problem could be located or what setting might cause trouble?

Thank you very much
Christian

Offline

#2 2020-06-18 06:53:11

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Konsole does not start after reboot into previous session

Are both sessions KDE/plasma?
The session behavior is actually configurable: https://userbase.kde.org/System_Setting … op_Session

Offline

#3 2020-06-18 09:19:01

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Re: Konsole does not start after reboot into previous session

Yes, both sessions are KDE/plasma.

I have set to restore the previous session. This works at least partly: Dolphin is started by default with the previous session, so the restoration in general seems to work. It foremost the konsole session that causes my trouble.

Offline

#4 2020-06-18 11:04:29

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Konsole does not start after reboot into previous session

Do you get updates in ~/.kde/share/config/session/ ?

Offline

#5 2020-06-18 11:50:39

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Re: Konsole does not start after reboot into previous session

seth wrote:

Do you get updates in ~/.kde/share/config/session/ ?

This folder/file is non-existent at the moment. I doubt, it will be generated on shutdown.

In fact, I do not even have the folder `~/.kde`. Are you sure about the location? Was it maybe moved somewhere else? I found something in `~/.config/session`. Maybe this is what you are referring to.

In fact in the folder `~/.config/session` there are some files, even some starting with `konsole_` plus a long series of (hex) numbers and underscores. These files are ascii where they look like a saved session. However, these files are comparably old. They are from May 20th which is almost a month ago. The last reboot I did was 1 or 2 days ago.

Offline

#6 2020-06-18 12:39:36

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Konsole does not start after reboot into previous session

Yeah, my KDE knowledge is a bit dated.
Since dolphin is restored
a) does it have an entry?
b) how old is that entry?
c) what happens if you remove it and re-login.

Offline

#7 2020-06-18 13:11:37

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Re: Konsole does not start after reboot into previous session

Yes, there is an entry regarding dolphin in that folder. It is about a day old. That matches more or less with the last login.

What do you mean: Removing the dolphin or the konsole file(s)? All of them or just the most recent ones?

Offline

#8 2020-06-18 13:29:32

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Konsole does not start after reboot into previous session

In doubt all of them, but if the dolphin file is up to date, that means it's just konsole which fails to store its session - either because it crashes on logout or I seem to recall there were issues w/ the activity management (but again: very dated knowledge)
Does re/storing of a manually saved session work?

Offline

#9 2020-06-18 15:59:31

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Re: Konsole does not start after reboot into previous session

Yes, this is my impression as well that is is related to konsole and not the restoring process in general.

How can I store/restore a session manually? Sorry, maybe I am simply stupid and overseeing the obvious but I do not see the relevant menu entry.

Offline

#10 2020-06-18 19:08:04

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Konsole does not start after reboot into previous session

It's explained in the link I posted in comment #2

Information
To manually save a session, you must first select the Restore manually saved session option and Apply. Then, when you use the KDE Menu -> Leave you will find that you have a new option - Save Session.

Offline

#11 2020-06-19 06:21:22

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Re: Konsole does not start after reboot into previous session

Sorry, my bad. I thought you mean of konsole, not the whole session.

To be on the safe side, I made a clone of the folder using rsync to some other folder in my home folder, saved the session and compared using diff -r. The result (local folder corresponds to ~/.config/session):

Only in .: dolphin_1013b10fe6db000156628135300000019910136_1592547232_318704
Only in .: dolphin_1013b10fe6db000158884462500000066400044_1592547232_318431
Only in .: dolphin_1013b10fe6db000159239980600000019870020_1592547232_324600
Only in .: kate_1013b10fe6db000159246916100000019870035_1592547232_324598
Only in .: kgpg_1013b10fe6db000158392790600000034550246_1592547232_319083
Only in .: kleopatra_1013b10fe6db000156448444800000020790416_1592547232_319000
Only in .: kmix_1013b10fe6db000155420082000000009590008_1592547232_317870
Only in .: kontact_1013b10fe6db000159067554500000021042194_1592547232_318819
Only in .: kwin_saved by user_
Only in .: systemsettings_1013b10fe6db000159254703400000019870059_1592547232_324577

Additionally, the konsole_* files are not touched. For me, it seems that the konsole is not saved according to these results.

Offline

#12 2022-03-06 14:02:27

diddly
Member
Registered: 2014-04-17
Posts: 7

Re: Konsole does not start after reboot into previous session

Hello, did you ever find a solution/reason for this behaviour?  A few of us over in Gentoo land are seeing this exact same bug, and are baffled.

(sorry to reply to an old thread, but this is a very specific problem)

Offline

#13 2022-03-07 07:27:01

clupus
Member
From: Saarbrücken
Registered: 2017-01-31
Posts: 22

Re: Konsole does not start after reboot into previous session

Hello.
Sorry, I did not really get a solution to this problem. Some windows of the console are still restarting in a pristine state as far as I can tell. Not all.
I am mainly using hibernate/suspend to avoid regular restarts of the plasma environment. Thus, I circumvented the problem sor of.
Christian

Offline

#14 2022-03-07 11:43:32

diddly
Member
Registered: 2014-04-17
Posts: 7

Re: Konsole does not start after reboot into previous session

Hi, thanks for responding.  I will update here as well if we learn anything about this frustrating behaviour.

Offline

#15 2023-03-18 15:51:50

mr_mr
Member
Registered: 2023-03-18
Posts: 1

Re: Konsole does not start after reboot into previous session

Hello, I had the same issue where everything in my session was restored except konsole. What finally fixed the issue for me was to use X11 instead of Wayland for my desktop session.

Offline

#16 2023-05-02 19:40:52

timblaktu
Member
Registered: 2023-04-21
Posts: 4

Re: Konsole does not start after reboot into previous session

Same issue here on the following system specs. I'm experimenting with deleting existing session files, tweaking konsole settings to do nothing "fancy" like open in full screen or remembering window positions, and re-create sessions on logout.

Operating System: Arch Linux
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.13-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 21DCCTO1WW
System Version: ThinkPad P1 Gen 5

Offline

#17 2023-05-02 19:50:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Konsole does not start after reboot into previous session

You can't reliably restore sessions on Wayland yet and this is still the case: https://community.kde.org/Plasma/Waylan … management

Closing this old post, please don't necrobump: https://wiki.archlinux.org/title/Genera … bumping%22

Offline

Board footer

Powered by FluxBB