plasma5-workspace/0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch
Christophe Giboudeaux 83c2c2e175 Accepting request 841559 from home:Vogtinator:plasma5.20
- Also commit the changed plasmafullwayland.desktop
- Add patch to fix startup of some applications (mostly Tk):
  * 0001-Revert-krdb-Call-xrdb-with-nocpp-to-fix-gitk-runtime.patch

OBS-URL: https://build.opensuse.org/request/show/841559
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=544
2020-10-13 14:00:06 +00:00

41 lines
1.2 KiB
Diff

From ae43cd883313e2309b3f90416b69e2e008b54a25 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
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