[rkward/frameworks] rkward: Don't _require_ frontend exe to be on the path, if already found.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon Aug 15 20:43:41 UTC 2016


Git commit 23e2dc39783278473f5680e22e53236036df7c8b by Thomas Friedrichsmeier.
Committed on 15/08/2016 at 20:43.
Pushed by tfry into branch 'frameworks'.

Don't _require_ frontend exe to be on the path, if already found.

M  +1    -1    rkward/rkward_startup_wrapper.cpp

http://commits.kde.org/rkward/23e2dc39783278473f5680e22e53236036df7c8b

diff --git a/rkward/rkward_startup_wrapper.cpp b/rkward/rkward_startup_wrapper.cpp
index caf1552..8ca417a 100644
--- a/rkward/rkward_startup_wrapper.cpp
+++ b/rkward/rkward_startup_wrapper.cpp
@@ -217,8 +217,8 @@ int main (int argc, char *argv[]) {
 	if (rkward_frontend_exe.isNull ()) rkward_frontend_exe = findRKWardAtPath (kde_dir.absoluteFilePath ("bin"));
 	if (rkward_frontend_exe.isNull ()) rkward_frontend_exe = findRKWardAtPath (kde_dir.absoluteFilePath ("../lib/libexec"));
 	for (int i = 0; i < syspath.size (); ++i) {
-		rkward_frontend_exe = findRKWardAtPath (syspath[i]);
 		if (!rkward_frontend_exe.isNull ()) break;
+		rkward_frontend_exe = findRKWardAtPath (syspath[i]);
 	}
 
 	if (rkward_frontend_exe.isNull ()) {



More information about the rkward-tracker mailing list