From 923d00b8bba1b17ac61dbf7a129e2016c62509d4 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Sat, 19 Oct 2019 18:48:00 +0200 Subject: [PATCH] plasma5: setup XDG_CONFIG_DIRS --- x11/plasma5-plasma-workspace/Makefile | 1 + .../files/patch-setup_xdg_environment | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 x11/plasma5-plasma-workspace/files/patch-setup_xdg_environment diff --git x11/plasma5-plasma-workspace/Makefile x11/plasma5-plasma-workspace/Makefile index b43784eb867d..1a5d1227affd 100644 --- x11/plasma5-plasma-workspace/Makefile +++ x11/plasma5-plasma-workspace/Makefile @@ -2,6 +2,7 @@ PORTNAME= plasma-workspace DISTVERSION= ${KDE_PLASMA_VERSION} +PORTREVISION= 1 CATEGORIES= x11 kde kde-plasma MAINTAINER= kde@FreeBSD.org diff --git x11/plasma5-plasma-workspace/files/patch-setup_xdg_environment x11/plasma5-plasma-workspace/files/patch-setup_xdg_environment new file mode 100644 index 000000000000..29f094a1ef93 --- /dev/null +++ x11/plasma5-plasma-workspace/files/patch-setup_xdg_environment @@ -0,0 +1,23 @@ +--- startkde/startplasma.cpp.orig 2019-10-19 18:43:24.172713000 +0200 ++++ startkde/startplasma.cpp 2019-10-19 18:45:50.953945000 +0200 +@@ -192,6 +192,10 @@ + if (!qEnvironmentVariableIsSet("XDG_DATA_DIRS")) { + qputenv("XDG_DATA_DIRS", KDE_INSTALL_FULL_DATAROOTDIR ":/usr/share:/usr/local/share"); + } ++ // Additionally also set default value for XDG_CONFIG_DIRS which is not set by default on FreeBSD. ++ if (!qEnvironmentVariableIsSet("XDG_CONFIG_DIRS")) { ++ qputenv("XDG_CONFIG_DIRS", KDE_INSTALL_FULL_CONFDIR ":/etc/xdg:/usr/local/etc/xdg"); ++ } + } + + +--- startkde/config-startplasma.h.cmake.orig 2019-10-19 18:56:51.844465000 +0200 ++++ startkde/config-startplasma.h.cmake 2019-10-19 18:57:22.843807000 +0200 +@@ -3,6 +3,7 @@ + + #define CMAKE_INSTALL_FULL_BINDIR "@CMAKE_INSTALL_FULL_BINDIR@" + #define KDE_INSTALL_FULL_DATAROOTDIR "@KDE_INSTALL_FULL_DATAROOTDIR@" ++#define KDE_INSTALL_FULL_CONFDIR "@KDE_INSTALL_FULL_CONFDIR@" + #define CMAKE_INSTALL_FULL_LIBEXECDIR "@CMAKE_INSTALL_FULL_LIBEXECDIR@" + #define CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "@CMAKE_INSTALL_FULL_LIBEXECDIR_KF5@" + #define KWIN_WAYLAND_BIN_PATH "@KWIN_WAYLAND_BIN_PATH@" -- 2.23.0