https://bugs.kde.org/show_bug.cgi?id=469801

            Bug ID: 469801
           Summary: ignoring shutdown inhibition
    Classification: Plasma
           Product: ksmserver
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@davidedmundson.co.uk
          Reporter: sit...@kde.org
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY
When systemd inhibits shutdown we ignore it currently, we should honor it by
default with opt out for admin users

STEPS TO REPRODUCE
1. systemd-inhibit --mode=block sleep 30
2. shutdown from kickoff

OBSERVED RESULT
shutdown happens

EXPECTED RESULT
shutdown shouldn't happen

SOFTWARE/OS VERSIONS
Operating System: KDE neon Testing Edition
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 5.19.0-38-generic (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600X 6-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT

ADDITIONAL INFORMATION
A possible implementation could check login1 ListInhibitors() for shutdown
inhibitions and if there are any refuse to shutdown if the user is not an admin
user. a list of inhibitions should probably be displayed so the user knows
why/what is causing the inhibition. if the user is an admin user there should
additionally be a button to override the inhibition. this behavior would be
consistently with systemctl itself.

this notably is useful when a distro is doing some important task that must not
be interrupted (such as a system update). it would then install an inhibition
that we should respect

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to