nixpkgs/pkgs/applications/networking/newsreaders/kwooty/0001-search-paths.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

From 6b5730e729d72c8d9242163e7061b956abee61f5 Mon Sep 17 00:00:00 2001
From: Thomas Tuegel <ttuegel@gmail.com>
Date: Sat, 12 Sep 2015 16:14:10 -0500
Subject: [PATCH] search paths
---
src/utilities/utility.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/utilities/utility.cpp b/src/utilities/utility.cpp
index 2e322aa..2e9e4d2 100644
--- a/src/utilities/utility.cpp
+++ b/src/utilities/utility.cpp
@@ -299,6 +299,7 @@ QString Utility::searchExternalPrograms(const QString& programToSearch, bool& pr
QString programPathName;
QStringList searchPathList = Settings::searchPathList();
+ searchPathList << "/usr/bin/unpar" << "/usr/bin/unrar" << "/usr/bin/7z";
QStringList programsWithDifferentNames = programToSearch.split(";");
@@ -368,7 +369,7 @@ QStringList Utility::buildPriorityArgument(const int& processPriority, const int
QStringList niceProcessArgs;
// look for 'nice' location :
- QString nicePath = KStandardDirs::findExe("nice");
+ QString nicePath = QString("/usr/bin/nice");
niceProcessArgs.append(nicePath);
niceProcessArgs.append("-n");
--
2.5.0