summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore 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
@@ -67,6 +67,7 @@
#include <qapplication.h>
#include <qsocketnotifier.h>
#include <qstring.h>
+#include <qfile.h>
#include <stdlib.h>
#include <stdio.h>
@@ -142,6 +143,11 @@ void MyPty::error()
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;