Bug 437244 - Screen locker stops working after { plasmashell --replace; }
Summary: Screen locker stops working after { plasmashell --replace; }
Status: RESOLVED WORKSFORME
Alias: None
Product: kscreenlocker
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-17 11:43 UTC by Christopher Yeleighton
Modified: 2022-11-04 21:54 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2021-05-17 11:43:36 UTC
SUMMARY

Screen locker stops working after { plasmashell --replace; }

STEPS TO REPRODUCE
1. { plasmashell --replace; }
2. Wait until the old plasma shell process quits.
3. { sleep 300; }

OBSERVED RESULT
The screen is unlocked.

EXPECTED RESULT
Lock the screen!

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2021-05-17 12:30:47 UTC
plasmashell is independent of the screenlocker.
This is not the cause.

Please confirm your screen locker settings, whether this is X or wayland and please check if any inhibitions are active in the battery applet.
Comment 2 Christopher Yeleighton 2021-05-17 16:11:09 UTC
(In reply to David Edmundson from comment #1)
> plasmashell is independent of the screenlocker.
> This is not the cause.
> 
> Please confirm your screen locker settings,
Autolock after 5 min.
this is X

> please check if any inhibitions are active in the battery applet.
This is a desktop machine without a battery (other than CMOS).
Comment 3 Nate Graham 2021-05-18 22:13:52 UTC
Cannot reproduce.
Comment 4 David Edmundson 2021-05-18 22:27:46 UTC
> please check if any inhibitions are active in the battery applet.
This is a desktop machine without a battery (other than CMOS).


You'll still have the applet
Comment 5 Christopher Yeleighton 2021-05-19 12:17:46 UTC
(In reply to David Edmundson from comment #4)
> > please check if any inhibitions are active in the battery applet.
> This is a desktop machine without a battery (other than CMOS).
> 
> 
> You'll still have the applet

The problem goes away after telling Plasma shell to quit and relaunching it.
Comment 6 Christopher Yeleighton 2021-05-19 12:20:45 UTC
> The problem goes away after telling Plasma shell to quit and relaunching it.

I boldly hypothesise that —-replace tries to register interfaces before the former shell has quit, resulting in missing interfaces.
Comment 7 Nate Graham 2022-11-04 21:11:48 UTC
Thank you for reporting this issue in KDE software. As it has been a while since it was reported, can we please ask you to see if you can reproduce the issue with a recent software version? Like Plasma 5.25, or ideally 5.26?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!