commit:     58cc5ee492c2dd95eeb34a2097d9adb689deabf3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  4 04:48:37 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  4 04:50:58 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58cc5ee4

kde-plasma/plasma-workspace: backport fixes from 6.6 branch

Dobry Nikolov (2):
      shell: restore early destroyed guard for panel containments
      shellcorona: use QPointer for m_waitingPanels to futureproof against 
dangling pointers

Kai Uwe Broulik (1):
      applets/notifications: Fix display of total or processed value

Nicolas Fella (1):
      shell: Generate plasma-shell Wayland interface for the right target

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...ifications-Fix-display-of-total-or-proces.patch |  39 ++++
 ...re-early-destroyed-guard-for-panel-contai.patch |  57 +++++
 ...-use-QPointer-for-m_waitingPanels-to-futu.patch |  80 +++++++
 ...ate-plasma-shell-Wayland-interface-for-th.patch |  31 +++
 .../plasma-workspace-6.6.2-r1.ebuild               | 231 +++++++++++++++++++++
 5 files changed, 438 insertions(+)

diff --git 
a/kde-plasma/plasma-workspace/files/0001-applets-notifications-Fix-display-of-total-or-proces.patch
 
b/kde-plasma/plasma-workspace/files/0001-applets-notifications-Fix-display-of-total-or-proces.patch
new file mode 100644
index 000000000000..526c653e23a4
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/0001-applets-notifications-Fix-display-of-total-or-proces.patch
@@ -0,0 +1,39 @@
+From 6086254f84186a7a28b86ee9948e6008a0e3e502 Mon Sep 17 00:00:00 2001
+Message-ID: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+From: Kai Uwe Broulik <[email protected]>
+Date: Tue, 3 Mar 2026 13:14:31 +0000
+Subject: [PATCH 1/4] applets/notifications: Fix display of total or processed
+ value
+
+A string "0" is not falsy, so it will always use the processed value
+and display "0 files", even if total is being counted up.
+
+
+(cherry picked from commit dfdec3179865acaf1126db9432adf0fed41ce95d)
+
+Co-authored-by: Kai Uwe Broulik <[email protected]>
+--- a/applets/notifications/components/JobDetails.qml
++++ b/applets/notifications/components/JobDetails.qml
+@@ -127,15 +127,16 @@ GridLayout {
+                                          totalAsString, processedAsString);
+                         }
+                     } else {
++                        const displayValue = processed ? processedAsString : 
totalAsString;
+                         switch(modelData) {
+                         case "Bytes":
+                             return 
KCoreAddons.Format.formatByteSize(processed || total)
+                         case "Files":
+-                            return 
i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 file", "%1 files", 
(processedAsString || totalAsString));
++                            return 
i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 file", "%1 files", 
displayValue);
+                         case "Directories":
+-                            return 
i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 folder", "%1 folders", 
(processedAsString || totalAsString));
++                            return 
i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 folder", "%1 folders", 
displayValue);
+                         case "Items":
+-                            return 
i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 item", "%1 items", 
(processedAsString || totalAsString));
++                            return 
i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 item", "%1 items", 
displayValue);
+                         }
+                     }
+                 }
+-- 
+2.53.0
+

diff --git 
a/kde-plasma/plasma-workspace/files/0002-shell-restore-early-destroyed-guard-for-panel-contai.patch
 
b/kde-plasma/plasma-workspace/files/0002-shell-restore-early-destroyed-guard-for-panel-contai.patch
new file mode 100644
index 000000000000..585deef544bd
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/0002-shell-restore-early-destroyed-guard-for-panel-contai.patch
@@ -0,0 +1,57 @@
+From db08d2f00951ad7a0ad604fb03cf5d0b6e2c057b Mon Sep 17 00:00:00 2001
+Message-ID: 
<db08d2f00951ad7a0ad604fb03cf5d0b6e2c057b.1772599681.git....@gentoo.org>
+In-Reply-To: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+References: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+From: Dobry Nikolov <[email protected]>
+Date: Tue, 3 Mar 2026 13:44:02 +0200
+Subject: [PATCH 2/4] shell: restore early destroyed guard for panel
+ containments
+
+Commit 086ff5d8139eed36c25b3a7417f0eed8ec223739 removed a
+containmentAdded lambda from the constructor that connected
+QObject::destroyed -> panelContainmentDestroyed for every panel
+containment as soon as it was created. It reasoned that
+createWaitingPanels() already connects this signal, making it
+redundant.
+
+However, createWaitingPanels() only connects destroyed *after*
+successfully creating a PanelView for the containment. If a containment
+is freed before that point (e.g. its plugin is missing and libplasma
+issues deleteLater()), panelContainmentDestroyed is never connected,
+m_waitingPanels retains a dangling pointer, and the next dereference
+(e.g. in isScreenUiReady()) crashes with SIGSEGV.
+
+Restore the constructor connect so the guard is in place from the
+moment any panel containment is added, with no window of exposure.
+The connect inside createWaitingPanels() is now truly redundant
+and is removed.
+
+BUG: 516937
+(cherry picked from commit 0cc554a33cd496569f0fb1c9ba3a3f9261e627b7)
+--- a/shell/shellcorona.cpp
++++ b/shell/shellcorona.cpp
+@@ -142,6 +142,12 @@ void ShellCorona::init()
+     m_waitingPanelsTimer.setInterval(250ms);
+     connect(&m_waitingPanelsTimer, &QTimer::timeout, this, 
&ShellCorona::createWaitingPanels);
+ 
++    connect(this, &Corona::containmentAdded, this, [this](Plasma::Containment 
*cont) {
++        if (cont->containmentType() == Plasma::Containment::Panel || 
cont->containmentType() == Plasma::Containment::CustomPanel) {
++            connect(cont, &QObject::destroyed, this, 
&ShellCorona::panelContainmentDestroyed);
++        }
++    });
++
+ #ifndef NDEBUG
+     m_invariantsTimer.setSingleShot(true);
+     m_invariantsTimer.setInterval(qEnvironmentVariableIsSet("KDECI_BUILD") > 
0 ? 30000ms : 1s);
+@@ -1606,8 +1612,6 @@ void ShellCorona::createWaitingPanels()
+ 
+         rectNotify();
+ 
+-        connect(cont, &QObject::destroyed, this, 
&ShellCorona::panelContainmentDestroyed);
+-
+         connect(panel, &QWindow::visibleChanged, this, rectNotify);
+         connect(panel, &QWindow::screenChanged, this, rectNotify);
+         connect(panel, &PanelView::locationChanged, this, rectNotify);
+-- 
+2.53.0
+

diff --git 
a/kde-plasma/plasma-workspace/files/0003-shellcorona-use-QPointer-for-m_waitingPanels-to-futu.patch
 
b/kde-plasma/plasma-workspace/files/0003-shellcorona-use-QPointer-for-m_waitingPanels-to-futu.patch
new file mode 100644
index 000000000000..9925c2ab11d6
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/0003-shellcorona-use-QPointer-for-m_waitingPanels-to-futu.patch
@@ -0,0 +1,80 @@
+From 8b4500d7acc699ec72bbac4aeed30db3e168a76d Mon Sep 17 00:00:00 2001
+Message-ID: 
<8b4500d7acc699ec72bbac4aeed30db3e168a76d.1772599681.git....@gentoo.org>
+In-Reply-To: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+References: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+From: Dobry Nikolov <[email protected]>
+Date: Tue, 3 Mar 2026 13:45:34 +0200
+Subject: [PATCH 3/4] shellcorona: use QPointer for m_waitingPanels to
+ futureproof against dangling pointers
+
+Change m_waitingPanels to QList<QPointer<Plasma::Containment>> so that
+any freed containment pointer auto-nulls in place rather than dangling.
+
+- createWaitingPanels(): call removeAll(nullptr) at entry to discard
+  any auto-nulled entries before iterating.
+- checkAllDesktopsUiReady(): same removeAll(nullptr) before isEmpty()
+  to avoid spuriously starting the timer for nulled entries.
+- panelContainmentDestroyed(): the m_waitingPanels branch is now
+  redundant since QPointer auto-nulls it; guard on m_panelViews
+  instead to keep the PanelView cleanup path intact.
+- isScreenUiReady(): null-check each QPointer before dereferencing.
+
+BUG: 516937
+(cherry picked from commit 7308d3153f5e9ee8607f89005aa05c2fd4f07dd6)
+--- a/shell/shellcorona.cpp
++++ b/shell/shellcorona.cpp
+@@ -1519,6 +1519,7 @@ void ShellCorona::checkAllDesktopsUiReady()
+     ksplashProgressMessage.setArguments(QList<QVariant>() << 
QStringLiteral("desktop"));
+     QDBusConnection::sessionBus().asyncCall(ksplashProgressMessage);
+ 
++    m_waitingPanels.removeAll(nullptr);
+     if (!m_waitingPanels.isEmpty()) {
+         m_waitingPanelsTimer.start();
+     }
+@@ -1576,7 +1577,9 @@ Plasma::Containment 
*ShellCorona::createContainmentForActivity(const QString &ac
+ 
+ void ShellCorona::createWaitingPanels()
+ {
+-    QList<Plasma::Containment *> stillWaitingPanels;
++    m_waitingPanels.removeAll(nullptr);
++
++    QList<QPointer<Plasma::Containment>> stillWaitingPanels;
+ 
+     for (Plasma::Containment *cont : std::as_const(m_waitingPanels)) {
+         // ignore non existing (yet?) screens
+@@ -1644,9 +1647,7 @@ void ShellCorona::panelContainmentDestroyed(QObject *obj)
+ {
+     auto *cont = static_cast<Plasma::Containment *>(obj);
+ 
+-    // The destroyed panel containment was still in the m_waitingPanels list
+-    if (m_waitingPanels.contains(cont)) {
+-        m_waitingPanels.removeAll(cont);
++    if (!m_panelViews.contains(cont)) {
+         return;
+     }
+ 
+@@ -2280,8 +2281,8 @@ bool ShellCorona::isScreenUiReady(int screen)
+         return false;
+     }
+ 
+-    for (Plasma::Containment *cont : std::as_const(m_waitingPanels)) {
+-        if (cont->lastScreen() == screen) {
++    for (const QPointer<Plasma::Containment> &cont : 
std::as_const(m_waitingPanels)) {
++        if (cont && cont->lastScreen() == screen) {
+             return false;
+         }
+     }
+--- a/shell/shellcorona.h
++++ b/shell/shellcorona.h
+@@ -302,7 +302,7 @@ private:
+     QHash<const Plasma::Containment *, int> m_pendingScreenChanges;
+     KConfigGroup m_desktopDefaultsConfig;
+     KConfigGroup m_lnfDefaultsConfig;
+-    QList<Plasma::Containment *> m_waitingPanels;
++    QList<QPointer<Plasma::Containment>> m_waitingPanels;
+     QHash<QString, QString> m_activityContainmentPlugins;
+     QAction *m_addPanelAction;
+     std::unique_ptr<QMenu> m_addPanelsMenu;
+-- 
+2.53.0
+

diff --git 
a/kde-plasma/plasma-workspace/files/0004-shell-Generate-plasma-shell-Wayland-interface-for-th.patch
 
b/kde-plasma/plasma-workspace/files/0004-shell-Generate-plasma-shell-Wayland-interface-for-th.patch
new file mode 100644
index 000000000000..561b7ca946fe
--- /dev/null
+++ 
b/kde-plasma/plasma-workspace/files/0004-shell-Generate-plasma-shell-Wayland-interface-for-th.patch
@@ -0,0 +1,31 @@
+From 92f96f433476ee4e49cfd1dce051a076b91d9763 Mon Sep 17 00:00:00 2001
+Message-ID: 
<92f96f433476ee4e49cfd1dce051a076b91d9763.1772599681.git....@gentoo.org>
+In-Reply-To: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+References: 
<6086254f84186a7a28b86ee9948e6008a0e3e502.1772599681.git....@gentoo.org>
+From: Nicolas Fella <[email protected]>
+Date: Tue, 3 Mar 2026 22:45:20 +0100
+Subject: [PATCH 4/4] shell: Generate plasma-shell Wayland interface for the
+ right target
+
+It's used by the plasmashell_osd, through PlasmaShellWaylandIntegration, not 
plasmashell
+
+Fixes a build race condition for generating that interface
+
+(cherry picked from commit 9114115f5af2594de64477e38e8762ff8dddbbd7)
+--- a/shell/CMakeLists.txt
++++ b/shell/CMakeLists.txt
+@@ -99,6 +99,11 @@ qt6_generate_wayland_protocol_client_sources(plasmashell
+     ${private_code_option}
+     FILES
+         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-screen-edge-v1.xml
++)
++
++qt6_generate_wayland_protocol_client_sources(plasmashell_osd
++    ${private_code_option}
++    FILES
+         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/plasma-shell.xml
+ )
+ 
+-- 
+2.53.0
+

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-6.6.2-r1.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-6.6.2-r1.ebuild
new file mode 100644
index 000000000000..12d0a6aca5e9
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-6.6.2-r1.ebuild
@@ -0,0 +1,231 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+KFMIN=6.22.0
+QTMIN=6.10.1
+inherit ecm plasma.kde.org xdg
+
+DESCRIPTION="KDE Plasma workspace"
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="6"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="appstream +fontconfig +ksysguard networkmanager +policykit
+screencast +semantic-desktop systemd telemetry +wallpaper-metadata +X"
+
+REQUIRED_USE="fontconfig? ( X )"
+RESTRICT="test"
+
+# kde-frameworks/kwindowsystem[X]: Uses KX11Extras
+# slot op: Uses Qt::GuiPrivate for qtx11extras_p.h
+# slot op: various private QtWaylandClient headers
+COMMON_DEPEND="
+       dev-libs/icu:=
+       >=dev-libs/wayland-1.15
+       >=dev-qt/qt5compat-${QTMIN}:6[qml]
+       
>=dev-qt/qtbase-${QTMIN}:6=[dbus,gui,libinput,network,opengl,sql,sqlite,wayland,widgets,xml]
+       >=dev-qt/qtdeclarative-${QTMIN}:6[widgets]
+       >=dev-qt/qtlocation-${QTMIN}:6
+       >=dev-qt/qtpositioning-${QTMIN}:6
+       >=dev-qt/qtshadertools-${QTMIN}:6
+       >=dev-qt/qtsvg-${QTMIN}:6
+       >=kde-frameworks/karchive-${KFMIN}:6
+       >=kde-frameworks/kauth-${KFMIN}:6
+       >=kde-frameworks/kbookmarks-${KFMIN}:6
+       >=kde-frameworks/kcmutils-${KFMIN}:6
+       >=kde-frameworks/kcolorscheme-${KFMIN}:6
+       >=kde-frameworks/kcompletion-${KFMIN}:6
+       >=kde-frameworks/kconfig-${KFMIN}:6
+       >=kde-frameworks/kconfigwidgets-${KFMIN}:6
+       >=kde-frameworks/kcoreaddons-${KFMIN}:6
+       >=kde-frameworks/kcrash-${KFMIN}:6
+       >=kde-frameworks/kdbusaddons-${KFMIN}:6
+       >=kde-frameworks/kdeclarative-${KFMIN}:6
+       >=kde-frameworks/kded-${KFMIN}:6
+       >=kde-frameworks/kglobalaccel-${KFMIN}:6
+       >=kde-frameworks/kguiaddons-${KFMIN}:6
+       >=kde-frameworks/kholidays-${KFMIN}:6
+       >=kde-frameworks/ki18n-${KFMIN}:6
+       >=kde-frameworks/kiconthemes-${KFMIN}:6
+       >=kde-frameworks/kidletime-${KFMIN}:6
+       >=kde-frameworks/kio-6.22.1:6
+       >=kde-frameworks/kitemmodels-${KFMIN}:6
+       >=kde-frameworks/kitemviews-${KFMIN}:6
+       >=kde-frameworks/kjobwidgets-${KFMIN}:6
+       >=kde-frameworks/knewstuff-${KFMIN}:6
+       >=kde-frameworks/knotifications-${KFMIN}:6
+       >=kde-frameworks/knotifyconfig-${KFMIN}:6
+       >=kde-frameworks/kpackage-${KFMIN}:6
+       >=kde-frameworks/kparts-${KFMIN}:6
+       >=kde-frameworks/krunner-${KFMIN}:6
+       >=kde-frameworks/kservice-${KFMIN}:6
+       >=kde-frameworks/kstatusnotifieritem-${KFMIN}:6
+       >=kde-frameworks/ksvg-${KFMIN}:6
+       >=kde-frameworks/ktexteditor-${KFMIN}:6
+       >=kde-frameworks/ktextwidgets-${KFMIN}:6
+       >=kde-frameworks/kwallet-${KFMIN}:6
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+       >=kde-frameworks/kwindowsystem-${KFMIN}:6[X?]
+       >=kde-frameworks/kxmlgui-${KFMIN}:6
+       >=kde-frameworks/prison-${KFMIN}:6[qml]
+       >=kde-frameworks/solid-${KFMIN}:6
+       >=kde-plasma/breeze-${KDE_CATV}:6
+       >=kde-plasma/knighttime-${KDE_CATV}:6
+       >=kde-plasma/kwayland-${KDE_CATV}:6
+       >=kde-plasma/kwin-${KDE_CATV}:6
+       >=kde-plasma/layer-shell-qt-${KDE_CATV}:6
+       >=kde-plasma/libkscreen-${KDE_CATV}:6
+       >=kde-plasma/libplasma-${KDE_CATV}:6=
+       >=kde-plasma/plasma-activities-${KDE_CATV}:6=
+       >=kde-plasma/plasma-activities-stats-${KDE_CATV}:6
+       media-libs/libcanberra
+       sci-libs/libqalculate:=
+       sys-apps/dbus
+       virtual/zlib:=
+       virtual/libudev:=
+       appstream? ( >=dev-libs/appstream-1[qt6] )
+       ksysguard? ( >=kde-plasma/libksysguard-${KDE_CATV}:6 )
+       policykit? ( virtual/libcrypt:= )
+       networkmanager? ( >=kde-frameworks/networkmanager-qt-${KFMIN}:6 )
+       semantic-desktop? ( >=kde-frameworks/baloo-${KFMIN}:6 )
+       systemd? ( sys-apps/systemd:= )
+       telemetry? ( >=kde-frameworks/kuserfeedback-${KFMIN}:6 )
+       wallpaper-metadata? ( kde-apps/libkexiv2:6 )
+       X? (
+               >=dev-qt/qtbase-${QTMIN}:6=[X]
+               >=kde-plasma/kscreenlocker-${KDE_CATV}:6
+               x11-libs/libICE
+               x11-libs/libSM
+               x11-libs/libX11
+               x11-libs/libXau
+               x11-libs/libxcb
+               x11-libs/libXcursor
+               x11-libs/libXfixes
+               x11-libs/libXtst
+               x11-libs/xcb-util
+               fontconfig? (
+                       media-libs/fontconfig
+                       media-libs/freetype
+                       x11-libs/libXft
+                       x11-libs/xcb-util-image
+               )
+       )
+"
+DEPEND="${COMMON_DEPEND}
+       >=dev-libs/plasma-wayland-protocols-1.19.0
+       dev-libs/qcoro
+       >=dev-qt/qtbase-${QTMIN}:6[concurrent]
+       test? ( screencast? ( >=media-video/pipewire-0.3:* ) )
+       X? (
+               fontconfig? ( x11-libs/libXrender )
+               x11-base/xorg-proto
+       )
+"
+RDEPEND="${COMMON_DEPEND}
+       !kde-plasma/libkworkspace:5
+       !<kde-plasma/plasma-desktop-6.3.80
+       !<kde-plasma/xdg-desktop-portal-kde-6.1.90
+       !kde-plasma/xembed-sni-proxy:*
+       app-text/iso-codes
+       dev-libs/kirigami-addons:6
+       >=dev-qt/qttools-${QTMIN}:*[qdbus]
+       kde-apps/kio-extras:6
+       >=kde-frameworks/kirigami-${KFMIN}:6
+       >=kde-frameworks/kquickcharts-${KFMIN}:6
+       >=kde-plasma/kactivitymanagerd-${KDE_CATV}:6
+       >=kde-plasma/kdesu-gui-${KDE_CATV}:*
+       >=kde-plasma/milou-${KDE_CATV}:6
+       >=kde-plasma/plasma-integration-${KDE_CATV}:6
+       sys-apps/dbus
+       x11-apps/xmessage
+       x11-apps/xprop
+       x11-apps/xrdb
+       policykit? ( sys-apps/accountsservice )
+       screencast? ( >=media-video/pipewire-0.3:* )
+"
+BDEPEND="
+       >=dev-qt/qtbase-${QTMIN}:6[wayland]
+       >=dev-util/wayland-scanner-1.19.0
+       >=kde-frameworks/kcmutils-${KFMIN}:6
+       virtual/pkgconfig
+       test? (
+               >=dev-qt/qtwayland-${QTMIN}:6[compositor(+)]
+               X? ( x11-misc/xdotool )
+       )
+"
+PDEPEND="
+       >=kde-plasma/plasma-login-sessions-${KDE_CATV}:6
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-5.22.5-krunner-cwd-at-home.patch" # TODO upstream: 
KDE-bug 432975, bug 767478
+       
"${FILESDIR}/0001-applets-notifications-Fix-display-of-total-or-proces.patch"
+       
"${FILESDIR}/0002-shell-restore-early-destroyed-guard-for-panel-contai.patch"
+       
"${FILESDIR}/0003-shellcorona-use-QPointer-for-m_waitingPanels-to-futu.patch"
+       
"${FILESDIR}/0004-shell-Generate-plasma-shell-Wayland-interface-for-th.patch"
+)
+
+src_prepare() {
+       ecm_src_prepare
+
+       cmake_comment_add_subdirectory login-sessions
+
+       if ! use policykit; then
+               cmake_comment_add_subdirectory -f kcms users
+       fi
+
+       if ! use fontconfig; then
+               ecm_punt_bogus_dep XCB IMAGE
+               sed -e "s/check_X11_lib(Xft)/#&/" -i CMakeLists.txt || die
+       fi
+
+       # TODO: try to get a build switch upstreamed
+       if ! use systemd; then
+               sed -e "s/^pkg_check_modules.*SYSTEMD/#&/" -i CMakeLists.txt || 
die
+       fi
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DWITH_X11=$(usex X) # remember to submit patches with bugs
+               -DWITH_X11_SESSION=$(usex X)
+               -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON # not packaged
+               -DGLIBC_LOCALE_GEN=OFF
+               -DGLIBC_LOCALE_PREGENERATED=$(usex elibc_glibc)
+               $(cmake_use_find_package appstream AppStreamQt)
+               $(cmake_use_find_package fontconfig Fontconfig)
+               $(cmake_use_find_package fontconfig Freetype)
+               $(cmake_use_find_package ksysguard KSysGuard)
+               $(cmake_use_find_package networkmanager KF6NetworkManagerQt)
+               -DBUILD_CAMERAINDICATOR=$(usex screencast)
+               $(cmake_use_find_package semantic-desktop KF6Baloo)
+               $(cmake_use_find_package telemetry KF6UserFeedback)
+               $(cmake_use_find_package wallpaper-metadata KExiv2Qt6)
+       )
+
+       ecm_src_configure
+}
+
+src_install() {
+       ecm_src_install
+
+       # default startup and shutdown scripts
+       insinto /etc/xdg/plasma-workspace/env
+       doins "${FILESDIR}"/10-agent-startup.sh
+
+       insinto /etc/xdg/plasma-workspace/shutdown
+       doins "${FILESDIR}"/10-agent-shutdown.sh
+       fperms +x /etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh
+}
+
+pkg_postinst () {
+       xdg_pkg_postinst
+
+       elog "To enable gpg-agent and/or ssh-agent in Plasma sessions,"
+       elog "edit ${EPREFIX}/etc/xdg/plasma-workspace/env/10-agent-startup.sh"
+       elog "and 
${EPREFIX}/etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh"
+}

Reply via email to