~ruther/guix-local

ref: ad3c61fcd3d6e2e3eab41aae642467f5eaf64b57 guix-local/gnu/packages/patches/kdbusaddons-kinit-file-name.patch -rw-r--r-- 898 bytes
ad3c61fc — Ricardo Wurmus gnu: python-hy: Update to 0.13.0. 8 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Add placeholder for kinit's store file name.

diff --git a/src/kdeinitinterface.cpp b/src/kdeinitinterface.cpp
index 22fa5e5..3d40937 100644
--- a/src/kdeinitinterface.cpp
+++ b/src/kdeinitinterface.cpp
@@ -52,7 +52,7 @@ void KDEInitInterface::ensureKdeinitRunning()
     // If not found in system paths, search other paths
     if (srv.isEmpty()) {
         const QStringList searchPaths = QStringList()
-            << QCoreApplication::applicationDirPath() // then look where our application binary is located
+            << QString::fromUtf8("@SUBSTITUTEME@/bin") // using QStringLiteral would be more efficient, but breaks guix store reference detection.
             << QLibraryInfo::location(QLibraryInfo::BinariesPath); // look where exec path is (can be set in qt.conf)
         srv = QStandardPaths::findExecutable(QStringLiteral("kdeinit5"), searchPaths);
         if (srv.isEmpty()) {