Hi, after the update to F40 and Wayland Konsole doesn't restore the logout status anymore. I have seen that before it saved the status in ~/.config/sessions/konsole_(numbers) and restarted from the more recent. Is there a command either from inside Konsole or from the command line to do that? Even if the "save to session" at logout wouldn't work the files are easily editable if needed.
Thanks, G
On 10/12/24 05:27, Gian Piero Puccioni via kde wrote:
Hi, after the update to F40 and Wayland Konsole doesn't restore the logout status anymore. I have seen that before it saved the status in ~/.config/sessions/konsole_(numbers) and restarted from the more recent. Is there a command either from inside Konsole or from the command line to do that? Even if the "save to session" at logout wouldn't work the files are easily editable if needed.
Thanks, G
Hi Gian, I'm on F41 and it looks like the issue may be the folder name has changed. In F41 (I'm assuming its the same in F40) the konsole files you have referenced aren't stored in "~/.config/sessions" they are stored in "~/.config/session", with a possible difference (I have never looked at these before) of what you are referencing as (numbers) seems to be a hash value. Having said this though, looking at the files the most recent one was created/updated on September 30, which would have been when I was on F40, and starting and stopping console doesn't create a new one, but things like running dolphin does create a file in that folder, so maybe the konsole functionality has changed.
regards, Steve
Sorry, I mistyped, it was "session" for me too and my last file was from before I updated to F40.
What I'd like to know is what procedure was used before to restart konsole from there, this has nothing to do with graphics so the change to Wayland shouldn't change it.
G
On 13/12/24 19:35, Gian Piero Puccioni via kde wrote:
Sorry, I mistyped, it was "session" for me too and my last file was from before I updated to F40.
What I'd like to know is what procedure was used before to restart konsole from there, this has nothing to do with graphics so the change to Wayland shouldn't change it.
G
This seems to be a global KDE issue that is not just limited to Fedora, and not just limited to Konsole, it also impacts KDE session restores. There have been official KDE bugs raised on this and there was a fix developed, but the fix broke something else in Fedora so hasn't really surfaced yet. There were some workarounds provided in the bug report so I've put the url for one of the workarounds here (https://unix.stackexchange.com/questions/593778/kde-konsole-how-to-save-and-...). Here is the discussion thread that provided the link to the bug and the workaround (https://discuss.kde.org/t/konsole-dont-remember-session-after-upgrade-to-pla...).
regards, Steve
Yes I know about the wayland problem with restore, but this is a strictly Konsole thing.... Even stranger, if you run "konsole --help-all" (version 24.08.3,F40) it lists --session <session> Restores the application from an earlier session. but if you try "konsole --session .config/session/konsole....." it doesn't work, but it doesn't give an error so it recognizes the options. I don't think this is a wayland problem.
G
On 15/12/24 20:04, Gian Piero Puccioni via kde wrote:
Yes I know about the wayland problem with restore, but this is a strictly Konsole thing.... Even stranger, if you run "konsole --help-all" (version 24.08.3,F40) it lists --session <session> Restores the application from an earlier session. but if you try "konsole --session .config/session/konsole....." it doesn't work, but it doesn't give an error so it recognizes the options. I don't think this is a wayland problem.
From memory I thought there was a thread in the discussion that said the issue seemed to only be when launched from a shortcut on the desktop? Just a silly suggestion, should the restore command be "konsole --session ~/.config/session/konsole....."?
regards, Steve
G
Stephen Morris wrote:
On 15/12/24 20:04, Gian Piero Puccioni via kde wrote:
Yes I know about the wayland problem with restore, but this is a strictly Konsole thing.... Even stranger, if you run "konsole --help-all" (version 24.08.3,F40) it lists --session <session> Restores the application from an earlier session. but if you try "konsole --session .config/session/konsole....." it doesn't work, but it doesn't give an error so it recognizes the options. I don't think this is a wayland problem. From memory I thought there was a thread in the discussion that said
the issue seemed to only be when launched from a shortcut on the desktop? Just a silly suggestion, should the restore command be "konsole --session ~/.config/session/konsole....."?
I never use desktop shorts and I ran it from my Home dir so it should be the same, in fact it doesn't even try to read the file, the command "konsole --session BogusName" gives the same result. And another thing, is it normal to have more than 700 of those konsole_<numbers> files ?
G
On 16/12/24 19:41, Gian Piero Puccioni via kde wrote:
Stephen Morris wrote:
On 15/12/24 20:04, Gian Piero Puccioni via kde wrote:
Yes I know about the wayland problem with restore, but this is a strictly Konsole thing.... Even stranger, if you run "konsole --help-all" (version 24.08.3,F40) it lists --session <session> Restores the application from an earlier session. but if you try "konsole --session .config/session/konsole....." it doesn't work, but it doesn't give an error so it recognizes the options. I don't think this is a wayland problem. From memory I thought there was a thread in the discussion that said
the issue seemed to only be when launched from a shortcut on the desktop? Just a silly suggestion, should the restore command be "konsole --session ~/.config/session/konsole....."?
I never use desktop shorts and I ran it from my Home dir so it should be the same, in fact it doesn't even try to read the file, the command "konsole --session BogusName" gives the same result. And another thing, is it normal to have more than 700 of those konsole_<numbers> files ?
G
I would have thought not, I only have 5, but none of them have been created/updated since 30 Sep 2024, and I use konsole every morning. Having said this though I can see any obvious way from the konsole menus how to save a session state.
regards, Steve
On Monday, 16 December 2024 21:13:41 Western European Standard Time Stephen Morris via kde wrote:
I would have thought not, I only have 5, but none of them have been created/updated since 30 Sep 2024, and I use konsole every morning. Having said this though I can see any obvious way from the konsole menus how to save a session state.
This process does not occur when running Plasma on Wayland.
On 17/12/24 20:13, José Abílio Matos via kde wrote:
On Monday, 16 December 2024 21:13:41 Western European Standard Time Stephen Morris via kde wrote:
I would have thought not, I only have 5, but none of them have been
created/updated since 30 Sep 2024, and I use konsole every morning.
Having
said this though I can see any obvious way from the konsole menus how to
save a session state.
This process does not occur when running Plasma on Wayland.
If it doesn't work from Plasma on Wayland, I don't understand how it would work when running Gnome on Wayland either. I would have thought that Konsole would be using the Plasma framework to perform all of its functions, therefore as you are saying that framework doesn't work under Wayland, I would have expected it to not work under Wayland irrespective of what DM is being used?
regards, Steve
--
José Abílio Matos
On Wed, 2024-12-18 at 08:14 +1100, Stephen Morris via kde wrote:
This process does not occur when running Plasma on Wayland.
If it doesn't work from Plasma on Wayland, I don't understand how it would work when running Gnome on Wayland either. I would have thought that Konsole would be using the Plasma framework to perform all of its functions, therefore as you are saying that framework doesn't work under Wayland, I would have expected it to not work under Wayland irrespective of what DM is being used?
This may or may not be relevant:
Gnome on Wayland has (apparently) a working "session restore" feature. KDE/Plasma on Wayland currently does not. I say "apparently" because I don't use Gnome and have no idea if this feature works, but when I requested it on the KDE Bugzilla the devels said it was being worked on. AFAIK it currently has no projected due date. The reason this may not be relevant is that one would think that the internal state of an app shouldn't depend on the DE (or even on the display manager).
It might be interesting to either run Konsole in Gnome, or run the Gnome Terminal in KDE, and see what happens.
poc
On 18/12/24 09:22, Patrick O'Callaghan via kde wrote:
On Wed, 2024-12-18 at 08:14 +1100, Stephen Morris via kde wrote:
This process does not occur when running Plasma on Wayland.
If it doesn't work from Plasma on Wayland, I don't understand how it would work when running Gnome on Wayland either. I would have thought that Konsole would be using the Plasma framework to perform all of its functions, therefore as you are saying that framework doesn't work under Wayland, I would have expected it to not work under Wayland irrespective of what DM is being used?
This may or may not be relevant:
Gnome on Wayland has (apparently) a working "session restore" feature. KDE/Plasma on Wayland currently does not. I say "apparently" because I don't use Gnome and have no idea if this feature works, but when I requested it on the KDE Bugzilla the devels said it was being worked on. AFAIK it currently has no projected due date. The reason this may not be relevant is that one would think that the internal state of an app shouldn't depend on the DE (or even on the display manager).
It might be interesting to either run Konsole in Gnome, or run the Gnome Terminal in KDE, and see what happens.
Is that development though at the Konsole level or at the Plasma level, or does the Plasma level cover both? I've seen articles around Konsole not having the backup/restore functionality in Plasma 6, I've also seen a solution to that issue that said the issue only occurs if Konsole is invoked from a shortcut (presumably a soft link), and I've seen a comment in that thread that said Plasma 6 doesn't have the session restore functionality (hence Plasma startups don't restore the previous state).
I did a start of Gnome-terminal from within Konsole and shut it down, and that did not write anything to ~/.config/session.
Just off topic, interestingly, I have some code in .bashrc that I saw in another mail to set PS1 which displays that text and white on a light blue background in Konsole, in the Gnome-terminal window I started that text was shown as black on a dark blue background. Has Gnome-terminal got its colours confused or is that configuration coming from somewhere else?
regards, Steve
poc
On Wed, 2024-12-18 at 09:49 +1100, Stephen Morris via kde wrote:
It might be interesting to either run Konsole in Gnome, or run the Gnome Terminal in KDE, and see what happens.
Is that development though at the Konsole level or at the Plasma level, or does the Plasma level cover both?
https://bugs.kde.org/show_bug.cgi?id=436318
but again: this is probably irrelevant to your question.
poc