[PC-BSD Commits] r17521 - pcbsd/current/src-qt4/libpcbsd

svn at pcbsd.org svn at pcbsd.org
Mon Jul 2 03:35:04 PDT 2012


Author: yurkis
Date: 2012-07-02 10:35:00 +0000 (Mon, 02 Jul 2012)
New Revision: 17521

Modified:
   pcbsd/current/src-qt4/libpcbsd/utils.cpp
Log:
runInTerminal() now should work also with usupported desktops (using xterm by default)

Modified: pcbsd/current/src-qt4/libpcbsd/utils.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/utils.cpp	2012-07-02 09:25:41 UTC (rev 17520)
+++ pcbsd/current/src-qt4/libpcbsd/utils.cpp	2012-07-02 10:35:00 UTC (rev 17521)
@@ -661,15 +661,14 @@
 void Utils::runInTerminal(QString command, QString windowTitle)
 {
     QStringList out = Utils::runShellCommand("de-info");
-    QString terminal_app;
-    QString terminal_title;
-    QString terminal_comm;
+    QString terminal_app="xterm";
+    QString terminal_title="-T";
+    QString terminal_comm="-e";
     bool separateArgs=false;
 
     for(int i=0; i<out.size(); i++)
     {
-        QString str = out.at(i).trimmed();
-        qDebug()<<str<<"\n";
+        QString str = out.at(i).trimmed();        
         if (str.indexOf("Terminal:")>=0)
         {
             terminal_app = str.replace("Terminal:","");



More information about the Commits mailing list