summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/MyPty.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/MyPty.cpp b/noncore/apps/opie-console/MyPty.cpp
index 984e347..2570826 100644
--- a/noncore/apps/opie-console/MyPty.cpp
+++ b/noncore/apps/opie-console/MyPty.cpp
@@ -64,12 +64,13 @@
*/
#include <qapplication.h>
#include <qsocketnotifier.h>
#include <qstring.h>
+#include <qfile.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
@@ -139,12 +140,17 @@ void MyPty::error()
// This is code from the Qt DumbTerminal example
donePty();
}
void MyPty::start() {
char* cmd = "/bin/sh";
+
+ if ( QFile::exists( "/bin/bash" ) ) {
+ char* cmd = "/bin/bash";
+ }
+
QStrList lis;
int r =run(cmd, lis, 0, 0);
r = r;
}
/*!
start the client program.