[Bug 61415] program does not run

Amilcar do Carmo Lucas amilcar at ida.ing.tu-bs.de
Mon Jul 21 11:09:02 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=61415     
amilcar at ida.ing.tu-bs.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From amilcar at ida.ing.tu-bs.de  2003-07-21 11:08 -------
Subject: kdevelop/parts

CVS commit by aclu: 

I accidentatly created bug 61415 last week. This fixes it.

CCMAIL: 61415-done at bugs.kde.org


  M +7 -1      autoproject/autoprojectpart.cpp   1.101
  M +2 -0      trollproject/trollprojectwidget.cpp   1.109


--- kdevelop/parts/autoproject/autoprojectpart.cpp  #1.100:1.101
@@ -920,5 +920,11 @@ void AutoProjectPart::slotExecute2()
     }
 
-    QString program = environstr + mainProgram(true) + " " + runArguments();
+    QString program = environstr;
+    // Adds the ./ that is necessary to execute the program in bash shells
+    if (!mainProgram(true).startsWith("/"))
+        program += "./";
+    program += mainProgram(true);
+    program += " " + runArguments();
+
     bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevautoproject/run/terminal");
 

--- kdevelop/parts/trollproject/trollprojectwidget.cpp  #1.108:1.109
@@ -2621,4 +2621,6 @@ void TrollProjectWidget::slotExecuteProj
 {
     QString program = m_part->mainProgram();
+    if (!program.startsWith("/"))
+        program.prepend("./");
 
     if ( program.isEmpty() ) {




More information about the KDevelop-devel mailing list