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
@@ -68,4 +68,5 @@
#include <qsocketnotifier.h>
#include <qstring.h>
+#include <qfile.h>
#include <stdlib.h>
@@ -143,4 +144,9 @@ 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);