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

            Bug ID: 383575
           Summary: org.freedesktop.ScreenSaver.Inhibit is unusable from
                    dbus-send
           Product: kscreenlocker
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: alex_y...@yahoo.ca
                CC: bhus...@gmail.com, mgraess...@kde.org
  Target Milestone: ---

kscreenlocker automatically uninhibits powerdevil if the inhibitor service
unregisters itself. this is the case when using qdbus and dbus-send, causing
xdg-screensaver suspend to not work correctly, which causes git mpv to not
inhibit the screensaver. at least two previous bug reports have been opened on
this issue, since (IMO) it is highly unexpected and user-unfriendly behavior. I
think that kscreenlocker should be changed to not uninhibit when the caller is
unregistered. I see the argument for avoiding hanging inhibitions, but bad
applications can already call the powerdevil methods and forget to uninhibit.
If hanging inhibitions is a serious issue, then a button can be added to the
powerdevil widget to manually clear inhibitions. alternatively, the powerdevil
methods should be changed to also check for caller unregistration (since
presumably that would also be an issue), and some other way should be found for
xdg-screensaver to operate (since currently, as mentioned before,
xdg-screensaver suspend does nothing on KDE right now). as a potential use
case, mpv would like to use xdg-screensaver or some shell-based method for
inhibiting in order to avoid dbus dependencies in core code.

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

Reply via email to