[SCM] kde-gtk-config packaging branch, master, updated. debian/5.8.6-1-8-g50b30c4
Boris Pek
tehnick at moszumanska.debian.org
Fri Aug 4 14:03:14 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/kde-gtk-config.git;a=commitdiff;h=15399bc
The following commit has been merged in the master branch:
commit 15399bc11138a7422decd78c5376de25cc7f62c3
Author: Boris Pek <tehnick-8 at yandex.ru>
Date: Fri Aug 4 16:51:54 2017 +0300
Add patch fix-search-of-gtk-preview-executables.
It is required for showing preview buttons in KDE-GTK-config UI.
(These buttons have not been working since version 4:5.1.95-0ubuntu1)
---
.../fix-search-of-gtk-preview-executables.patch | 43 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 44 insertions(+)
diff --git a/debian/patches/fix-search-of-gtk-preview-executables.patch b/debian/patches/fix-search-of-gtk-preview-executables.patch
new file mode 100644
index 0000000..dd727e3
--- /dev/null
+++ b/debian/patches/fix-search-of-gtk-preview-executables.patch
@@ -0,0 +1,43 @@
+Forwarded: no
+Description: Fix search of gtk*_preview executables
+ Due to Debian multiarch support gtk_preview and gtk3_preview executables are
+ installed into non-standard path (/usr/lib/*/libexec/) which is out of
+ search scope of QStandardPaths::findExecutable() function.
+ .
+ This patch is required for showing preview buttons in KDE-GTK-config UI.
+Author: Boris Pek <tehnick-8 at yandex.ru>
+Last-Update: 2017-08-04
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -26,6 +26,8 @@
+
+ # Set KI18n translation domain
+ add_definitions(-DTRANSLATION_DOMAIN=\"kde-gtk-config\")
++add_definitions(-DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\")
++add_definitions(-DLIBEXEC_INSTALL_DIR=\"${LIBEXEC_INSTALL_DIR}\")
+
+ set(kcm_SRCS
+ src/iconthemesmodel.cpp
+diff --git a/src/gtkconfigkcmodule.cpp b/src/gtkconfigkcmodule.cpp
+--- a/src/gtkconfigkcmodule.cpp
++++ b/src/gtkconfigkcmodule.cpp
+@@ -87,6 +87,17 @@
+ QString gtk2Preview = QStandardPaths::findExecutable("gtk_preview");
+ QString gtk3Preview = QStandardPaths::findExecutable("gtk3_preview");
+
++ // KStandardDirs::findExe was replaced by QStandardPaths::findExecutable
++ // in a wrong way. See for details:
++ // https://community.kde.org/Frameworks/Porting_Notes/KStandardDirs
++ static const QString searchPath = CMAKE_INSTALL_PREFIX "/" LIBEXEC_INSTALL_DIR;
++ if(gtk2Preview.isEmpty()) {
++ gtk2Preview = QStandardPaths::findExecutable("gtk_preview", QStringList() << searchPath);
++ }
++ if(gtk3Preview.isEmpty()) {
++ gtk3Preview = QStandardPaths::findExecutable("gtk3_preview", QStringList() << searchPath);
++ }
++
+ m_p2 = new KProcess(this);
+ m_p2->setEnv("GTK2_RC_FILES", m_tempGtk2Preview, true);
+ if(!gtk2Preview.isEmpty()) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..38db57e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-search-of-gtk-preview-executables.patch
--
kde-gtk-config packaging
More information about the pkg-kde-commits
mailing list