diff --git a/0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch b/0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch new file mode 100644 index 0000000..6f47fbd --- /dev/null +++ b/0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch @@ -0,0 +1,40 @@ +From ae43cd883313e2309b3f90416b69e2e008b54a25 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Thu, 1 Oct 2020 11:16:02 +0000 +Subject: [PATCH] Revert "krdb: Call xrdb with -nocpp" to fix gitk runtime + errors + +This commit was preventing gitk from starting with +'unknown color name "BACKGROUND"' errors. + +This reverts commit d360e3dcb608bd96d674bbae597b7938334972fd. + + +(cherry picked from commit f0764d87fe5275a123cdf6dca1ab3d0399c97578) +--- + kcms/krdb/krdb.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/kcms/krdb/krdb.cpp b/kcms/krdb/krdb.cpp +index c47e0353b..59ba546c4 100644 +--- a/kcms/krdb/krdb.cpp ++++ b/kcms/krdb/krdb.cpp +@@ -493,11 +493,11 @@ void runRdb( uint flags ) + tmpFile.flush(); + + KProcess proc; +- proc << QStringLiteral("xrdb") << QStringLiteral("-nocpp") +-#ifdef NDEBUG +- << QStringLiteral("-quiet") ++#ifndef NDEBUG ++ proc << QStringLiteral("xrdb") << QStringLiteral("-merge") << tmpFile.fileName(); ++#else ++ proc << "xrdb" << "-quiet" << "-merge" << tmpFile.fileName(); + #endif +- << QStringLiteral("-merge") << tmpFile.fileName(); + proc.execute(); + + applyGtkStyles(exportColors, 1); +-- +2.25.1 + diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index 43df3f6..c7a5a32 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 13 10:21:44 UTC 2020 - Fabian Vogt + +- Add patch to fix startup of some applications (mostly Tk): + * 0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch + ------------------------------------------------------------------- Thu Oct 8 16:55:25 UTC 2020 - Fabian Vogt diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index 01c6a9f..20a4064 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -41,6 +41,7 @@ Source2: plasma.keyring Source3: baselibs.conf Source4: plasmafullwayland.desktop # PATCH-FIX-UPSTREAM +Patch1: 0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch # PATCHES 501-??? are PATCH-FIX-OPENSUSE Patch501: 0001-Use-qdbus-qt5.patch Patch502: 0001-Ignore-default-sddm-face-icons.patch