[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/konqueror/shellcmdplugin
From:       Helge Deller <deller () kde ! org>
Date:       2003-11-02 13:42:04
[Download RAW message or body]

CVS commit by deller: 

don't hardcode the shell binary name


  M +6 -1      kshellcmdexecutor.cpp   1.7


--- kdebase/konqueror/shellcmdplugin/kshellcmdexecutor.cpp  #1.6:1.7
@@ -23,4 +23,5 @@
 #include <unistd.h>
 #include <signal.h>
+#include <stdlib.h>
 
 #include <qsocketnotifier.h>
@@ -73,5 +74,9 @@ int KShellCommandExecutor::exec()
    //kdDebug()<<"------- executing: "<<m_command.latin1()<<endl;
 
-   int ret = m_shellProcess->exec("sh", args);
+   QCString shell( getenv("SHELL") );
+   if (shell.isEmpty())
+      shell = "sh";
+
+   int ret = m_shellProcess->exec(shell, args);
    if (ret < 0)
    {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic