From 70aa9c66be33b415b141d1a67e37543fd36471ba Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 3 Dec 2023 21:00:33 +0100 Subject: [PATCH] x11/plasma6-plasma-workspace: unbreak Wayland similar to f06a1b44e85b --- x11/plasma6-plasma-workspace/Makefile | 5 +++++ .../files/patch-setup_xdg_environment | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment diff --git a/x11/plasma6-plasma-workspace/Makefile b/x11/plasma6-plasma-workspace/Makefile index b92d3f17947ce..1872ec3569cde 100644 --- a/x11/plasma6-plasma-workspace/Makefile +++ b/x11/plasma6-plasma-workspace/Makefile @@ -1,5 +1,6 @@ PORTNAME= plasma-workspace DISTVERSION= ${KDE_PLASMA_VERSION} +PORTREVISION= 1 CATEGORIES= x11 kde kde-plasma COMMENT= KDE Plasma Workspace @@ -39,4 +40,8 @@ USE_KDE= activities activities-stats archive attica5 auth baloo5 \ USE_QT= 5compat base declarative phonon4 svg wayland USE_XORG= ice sm x11 xau xcb xcursor xext xfixes xft xi xrender xtst +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${PATCH_WRKSRC}/startkde/startplasma.cpp + .include diff --git a/x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment b/x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment new file mode 100644 index 0000000000000..b6aba665507f0 --- /dev/null +++ b/x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment @@ -0,0 +1,11 @@ +--- startkde/startplasma.cpp.orig 2023-11-29 10:44:01 UTC ++++ startkde/startplasma.cpp +@@ -341,7 +341,7 @@ void setupPlasmaEnvironment() + // Add kdedefaults dir to allow config defaults overriding from a writable location + QByteArray currentConfigDirs = qgetenv("XDG_CONFIG_DIRS"); + if (currentConfigDirs.isEmpty()) { +- currentConfigDirs = "/etc/xdg"; ++ currentConfigDirs = "%%LOCALBASE%%/etc/xdg:/etc/xdg"; + } + const QString extraConfigDir = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/kdedefaults"); + QDir().mkpath(extraConfigDir);