added patch to fix #433408

epel9
Yaroslav Sidlovsky 4 years ago
parent 88c3133b10
commit bad93e9c54

@ -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<QDBusObjectPath> session = m_managerIface.data()->asyncCall(QLatin1String("GetSessionByPID"), (quint32) QCoreApplication::applicationPid());
+ QDBusPendingReply<QDBusObjectPath> session = m_managerIface.data()->asyncCall(QLatin1String("GetSession"), QStringLiteral("auto"));
session.waitForFinished();
if (!session.isValid()) {

@ -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 <zawertun@gmail.com> - 5.21.5-2
- added patch to fix #433408
* Tue May 04 2021 Jan Grulich <jgrulich@redhat.com> - 5.21.5-1
- 5.21.5

Loading…
Cancel
Save