Bug 451310

Summary: Prevent start of non-running applications according to consistent session management
Product: [Unmaintained] ksmserver Reporter: Markus Elfring <Markus.Elfring>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.24.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example for session configuration data

Description Markus Elfring 2022-03-09 11:40:17 UTC
SUMMARY
I would appreciate a working session management for my desktop.

STEPS TO REPRODUCE
1. The application “Konqueror 21.12.3” was started (for example).
2. This program was terminated a bit later.
3. Some files were intentionally deleted by the command “rm ~/.config/session/konqueror*”.
4. A logout was performed while session storage should be active.
5. Another login was triggered for the previously selected user.

OBSERVED RESULT
The application “Konqueror” was started again despite of the detail that it should not belong to the programs which were configured for automatic starting.

EXPECTED RESULT
Some application windows may be restored for another work session but without the programs which were intentionally terminated before.
Comment 1 David Edmundson 2022-03-09 11:49:03 UTC
Please include your ~/.config/ksmserverrc
Comment 2 Markus Elfring 2022-03-09 13:01:15 UTC
Created attachment 147390 [details]
Example for session configuration data

(In reply to David Edmundson from comment #1)
How will the chances evolve to fix software components for proper session management?
Comment 3 Nate Graham 2022-03-23 13:19:49 UTC
Konqueror autostarting on login has nothing to do with session management and everything to do with the konqy_preload file in /etc/xdg/autostart. Can you check to see if you have a file by that name (or a similar one, I can't quite remember) in there?
Comment 4 Markus Elfring 2022-03-24 08:28:39 UTC
(In reply to Nate Graham from comment #3)
The set of available session storage files evolved in the meantime.
But I would like to point out that on one of my running systems the application window is not presented for the program “konqueror” after another login despite of the existing file “/etc/xdg/autostart/konqy_preload.desktop”.
Comment 5 Nate Graham 2022-03-31 19:04:13 UTC

*** This bug has been marked as a duplicate of bug 450624 ***