[rkward-cvs] SF.net SVN: rkward: [2293] trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Thu Jan 3 16:20:09 UTC 2008
Revision: 2293
http://rkward.svn.sourceforge.net/rkward/?rev=2293&view=rev
Author: tfry
Date: 2008-01-03 08:20:08 -0800 (Thu, 03 Jan 2008)
Log Message:
-----------
Use KStandardDirs::findExe() to locate kdesu, reliably
Modified Paths:
--------------
trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp
Modified: trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp
===================================================================
--- trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp 2008-01-03 16:10:03 UTC (rev 2292)
+++ trunk/rkward/rkward/dialogs/rkloadlibsdialog.cpp 2008-01-03 16:20:08 UTC (rev 2293)
@@ -32,6 +32,7 @@
#include <kmessagebox.h>
#include <kvbox.h>
#include <kuser.h>
+#include <kstandarddirs.h>
#include "../rkglobals.h"
#include "../rbackend/rinterface.h"
@@ -190,12 +191,11 @@
file.close();
}
-#warning kdesu may not be in the path. It might be in libexec.
QString R_binary (getenv ("R_binary"));
QString call;
QStringList params;
if (as_root) {
- call = "kdesu";
+ call = KStandardDirs::findExe ("kdesu");
params << "-t";
} else {
call = "sh";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list