From bad93e9c543671981a623265dd466dfb11115f1f Mon Sep 17 00:00:00 2001 From: Yaroslav Sidlovsky Date: Wed, 5 May 2021 03:50:08 +0300 Subject: [PATCH] added patch to fix #433408 --- powerdevil-5.21.4-get_session-auto.patch | 12 ++++++++++++ powerdevil.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 powerdevil-5.21.4-get_session-auto.patch diff --git a/powerdevil-5.21.4-get_session-auto.patch b/powerdevil-5.21.4-get_session-auto.patch new file mode 100644 index 0000000..d1848a3 --- /dev/null +++ b/powerdevil-5.21.4-get_session-auto.patch @@ -0,0 +1,12 @@ +diff '--color=auto' -r -U3 powerdevil-5.21.5.orig/daemon/powerdevilpolicyagent.cpp powerdevil-5.21.5/daemon/powerdevilpolicyagent.cpp +--- powerdevil-5.21.5.orig/daemon/powerdevilpolicyagent.cpp 2021-05-04 15:57:30.000000000 +0300 ++++ powerdevil-5.21.5/daemon/powerdevilpolicyagent.cpp 2021-05-05 03:45:17.021313522 +0300 +@@ -236,7 +236,7 @@ + return; + } + +- QDBusPendingReply session = m_managerIface.data()->asyncCall(QLatin1String("GetSessionByPID"), (quint32) QCoreApplication::applicationPid()); ++ QDBusPendingReply session = m_managerIface.data()->asyncCall(QLatin1String("GetSession"), QStringLiteral("auto")); + session.waitForFinished(); + + if (!session.isValid()) { diff --git a/powerdevil.spec b/powerdevil.spec index 2c2c5da..e9d1eee 100644 --- a/powerdevil.spec +++ b/powerdevil.spec @@ -3,7 +3,7 @@ Name: powerdevil Version: 5.21.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Manages the power consumption settings of a Plasma Shell License: GPLv2+ @@ -22,6 +22,10 @@ Source0: http://download.kde.org/%{stable}/plasma/%{plasma_version}/%{name}-%{ve ## upstream patches +## upstreamable patches +# https://bugs.kde.org/show_bug.cgi?id=433408 +Patch0: powerdevil-5.21.4-get_session-auto.patch + # filter plugin provides %global __provides_exclude_from ^(%{_kf5_qtplugindir}/.*\\.so)$ @@ -113,6 +117,9 @@ rm -fv %{buildroot}/%{_libdir}/libpowerdevil{configcommonprivate,core,ui}.so %{_userunitdir}/plasma-powerdevil.service %changelog +* Wed May 05 2021 Yaroslav Sidlovsky - 5.21.5-2 +- added patch to fix #433408 + * Tue May 04 2021 Jan Grulich - 5.21.5-1 - 5.21.5