add polkit-kde-agent-1
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -91,6 +91,7 @@ RDEPENDS_${PN} = " \
|
||||
frameworkintegration \
|
||||
plasma-desktop \
|
||||
plasma-workspace-wallpapers \
|
||||
polkit-kde-agent-1 \
|
||||
\
|
||||
kwayland \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "x11", "kwin khotkeys kde-gtk-config", "",d)} \
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
From 099c0a4f82aaea70d751ad33fc35dfaea0c80a1b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Mon, 9 Feb 2015 20:00:24 +0100
|
||||
Subject: [PATCH] fix build for QT_NO_SESSIONMANAGER
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
main.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/main.cpp b/main.cpp
|
||||
index c770e25..8b93157 100644
|
||||
--- a/main.cpp
|
||||
+++ b/main.cpp
|
||||
@@ -25,7 +25,9 @@
|
||||
#include <KCrash>
|
||||
#include <KDBusService>
|
||||
|
||||
+#ifndef QT_NO_SESSIONMANAGER
|
||||
#include <QSessionManager>
|
||||
+#endif
|
||||
|
||||
#include "policykitkde.h"
|
||||
|
||||
@@ -48,12 +50,14 @@ int main(int argc, char *argv[])
|
||||
PolicyKitKDE agent(argc, argv);
|
||||
KDBusService service(KDBusService::Unique);
|
||||
|
||||
+#ifndef QT_NO_SESSIONMANAGER
|
||||
auto disableSessionManagement = [](QSessionManager &sm) {
|
||||
sm.setRestartHint(QSessionManager::RestartNever);
|
||||
};
|
||||
|
||||
QObject::connect(&agent, &QGuiApplication::commitDataRequest, disableSessionManagement);
|
||||
QObject::connect(&agent, &QGuiApplication::saveStateRequest, disableSessionManagement);
|
||||
+#endif
|
||||
|
||||
agent.exec();
|
||||
}
|
||||
--
|
||||
1.9.3
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Daemon providing a polkit authentication UI for KDE"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24 \
|
||||
"
|
||||
|
||||
inherit kde-plasma
|
||||
|
||||
DEPENDS += " \
|
||||
ki18n \
|
||||
kwindowsystem \
|
||||
kdbusaddons \
|
||||
kwidgetsaddons \
|
||||
kcoreaddons \
|
||||
kcrash \
|
||||
kconfig \
|
||||
kiconthemes \
|
||||
knotifications \
|
||||
polkit-qt-1 \
|
||||
"
|
||||
|
||||
PV = "${PLASMA_VERSION}"
|
||||
SRC_URI[md5sum] = "ddf92f8756141293584164c591074850"
|
||||
SRC_URI[sha256sum] = "f818e67cb745b96587e911474103fc90694cb269be3703978067672aa3f86591"
|
||||
|
||||
SRC_URI += "file://0001-fix-build-for-QT_NO_SESSIONMANAGER.patch"
|
||||
|
||||
FILES_${PN} += "${datadir}/knotifications5"
|
||||
Reference in New Issue
Block a user