You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
powerdevil/powerdevil-5.21.4-get_sessi...

13 lines
757 B

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()) {