Bug 443196 - multiple instances open upon login
Summary: multiple instances open upon login
Status: RESOLVED WORKSFORME
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: 5.18.7
Platform: Debian stable Linux
: NOR minor
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-01 13:15 UTC by jonathanroth
Modified: 2021-10-06 13:36 UTC (History)
2 users (show)

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


Attachments
the instances that are open (157.17 KB, image/png)
2021-10-01 13:15 UTC, jonathanroth
Details
konsole version (13.35 KB, image/png)
2021-10-01 13:15 UTC, jonathanroth
Details
about system (50.34 KB, image/png)
2021-10-01 13:16 UTC, jonathanroth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonathanroth 2021-10-01 13:15:07 UTC
Created attachment 142064 [details]
the instances that are open

SUMMARY
konsole opens multiple instances in certain directories upon login (from shutdown, not sleep)
these instances are in the same directories every time, and always on the same virtual desktop
i exit from them every time, however they always open again upon restart 

STEPS TO REPRODUCE
1. -
2. -
3. -

OBSERVED RESULT
konsole opens instances upon restart
EXPECTED RESULT
konsole does not open instances upon restart

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3

ADDITIONAL INFORMATION
Comment 1 jonathanroth 2021-10-01 13:15:43 UTC
Created attachment 142065 [details]
konsole version
Comment 2 jonathanroth 2021-10-01 13:16:05 UTC
Created attachment 142066 [details]
about system
Comment 3 Ahmad Samir 2021-10-01 15:28:00 UTC
Is session restore enabled? (systemsettings -> startup and shutdown -> desktop session).
Comment 4 jonathanroth 2021-10-05 13:57:28 UTC
(In reply to Ahmad Samir from comment #3)
> Is session restore enabled? (systemsettings -> startup and shutdown ->
> desktop session).

yes, it is
when i disabled it, konsole no longer opened instances upon start
however, when i re-enabled it, konsole again opened the same instances upon start

the crux of this bug is that i am exiting console (via the "exit" command), so there should not be any instances in the session to restore
Comment 5 Ahmad Samir 2021-10-05 14:20:21 UTC
You mean all konsole windows are closed before you logout but they still open again when you login?
Comment 6 jonathanroth 2021-10-05 14:46:30 UTC
(In reply to Ahmad Samir from comment #5)
> You mean all konsole windows are closed before you logout but they still
> open again when you login?

precisely
Comment 7 Ahmad Samir 2021-10-05 14:48:57 UTC
That means session saving isn't working correctly; but that would be a plasma bug.
Comment 8 Ahmad Samir 2021-10-05 14:49:18 UTC
Plasma 5.14 is quite old.
Comment 9 jonathanroth 2021-10-05 14:53:42 UTC
(In reply to Ahmad Samir from comment #8)
> Plasma 5.14 is quite old.

thank you
could you help me find where I should submit the bug?
Comment 10 Ahmad Samir 2021-10-05 14:56:18 UTC
I'd changed the Product in this report, so you don't need to file a new one.
Comment 11 jonathanroth 2021-10-05 14:58:31 UTC
(In reply to Ahmad Samir from comment #10)
> I'd changed the Product in this report, so you don't need to file a new one.

thank you
Comment 12 David Edmundson 2021-10-05 22:41:38 UTC
Please include output of ~/.config/ksmserverrc
Comment 13 jonathanroth 2021-10-06 13:36:24 UTC
(In reply to David Edmundson from comment #12)
> Please include output of ~/.config/ksmserverrc

[General]
confirmLogout=true
excludeApps=
loginMode=restorePreviousLogout
offerShutdown=true
screenCount=1
shutdownType=0

[LegacySession: saved at previous logout]
count=0

[Session: saved at previous logout]
clientId1=10c4daca67000163344631500000108160000
clientId2=10c4daca67000163344631500000108160008
clientId3=10c4daca67000163344631500000108160009
clientId4=10c4daca67000163344631500000108160010
clientId5=10c4daca67000163344632800000108160012
count=5
discardCommand1[$e]=rm,$HOME/.config/session/kwin_10c4daca67000163344631500000108160000_1633446425_319438
program1=/usr/bin/kwin_x11
program2=/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
program3=/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil
program4=/usr/bin/korgac
program5=firefox
restartCommand1=/usr/bin/kwin_x11,-session,10c4daca67000163344631500000108160000_1633446425_319438
restartCommand2=/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd,-session,10c4daca67000163344631500000108160008_1633446425_315251
restartCommand3=/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil,-session,10c4daca67000163344631500000108160009_1633446425_312490
restartCommand4=/usr/bin/korgac,-session,10c4daca67000163344631500000108160010_1633446425_315337
restartCommand5=/usr/lib/firefox-esr/firefox-esr,--sm-client-id,10c4daca67000163344632800000108160012
restartStyleHint1=0
restartStyleHint2=0
restartStyleHint3=0
restartStyleHint4=0
restartStyleHint5=0
userId1=styg
userId2=styg
userId3=styg
userId4=styg
userId5=styg
wasWm1=true
wasWm2=false
wasWm3=false
wasWm4=false
wasWm5=false


I have fixed the issue! I closed all instances of konsole, and then exited the session. when i logged back in, they were no longer open.

My commands for shutdown and restart, "/sbin/shutdown now" and "/sbin/shutdown -r now" respectively, must not have been exiting the session.