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

            Bug ID: 421660
           Summary: PowerManagementInterface printing incessantly about
                    non-existent service
           Product: elisa
           Version: 20.04.1
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: matthieu_gall...@yahoo.fr
          Reporter: gabemarc...@yahoo.com
  Target Milestone: ---

SUMMARY

Poking around at the code, in src/powermanagementinterface.cpp, in the function
PowerManagementInterface::setPreventSleep, I see checks for management the
inhibition state for both Plasma and Gnome are always called. On my system,
that only has Plasma, this leads to spam on the console whenever music is
played, specifically:

PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace
QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name
org.gnome.SessionManager was not provided by any .service files")


STEPS TO REPRODUCE
1. Have a Linux distro with either Plasma or Gnome installed (not both?)
2. Run Elisa
3. Play a file/music archive

OBSERVED RESULT

PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace
QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name
org.gnome.SessionManager was not provided by any .service files")

is printed in the console.

EXPECTED RESULT

No error messages displayed due to non-existent D-Bus service on a computer
without said service installed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo, Plasma
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION

There are a couple ways to fix this-- one is to remove the qDebug statement, or
somehow hide it (I'm unfamiliar with verbosity levels in Qt/KDE). Another is to
detect the existence of services in PowerManagementInterface initialization,
and only call inhibitor functions of the services found.

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

Reply via email to