author | harlekin <harlekin> | 2002-10-25 18:57:47 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-25 18:57:47 (UTC) |
commit | 1d3135677f1f49b9cc87ebf01f1c4eaab3c450f4 (patch) (unidiff) | |
tree | 63599d704e4f522393a613692369ff9c4a554eef /noncore | |
parent | 4151cc12a6c37cbec4bb6883204703eec2fb8648 (diff) | |
download | opie-1d3135677f1f49b9cc87ebf01f1c4eaab3c450f4.zip opie-1d3135677f1f49b9cc87ebf01f1c4eaab3c450f4.tar.gz opie-1d3135677f1f49b9cc87ebf01f1c4eaab3c450f4.tar.bz2 |
is there is a real bash installed, take that instead of sh
-rw-r--r-- | noncore/apps/opie-console/MyPty.cpp | 6 |
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 @@ | |||
64 | */ | 64 | */ |
65 | 65 | ||
66 | 66 | ||
67 | #include <qapplication.h> | 67 | #include <qapplication.h> |
68 | #include <qsocketnotifier.h> | 68 | #include <qsocketnotifier.h> |
69 | #include <qstring.h> | 69 | #include <qstring.h> |
70 | #include <qfile.h> | ||
70 | 71 | ||
71 | #include <stdlib.h> | 72 | #include <stdlib.h> |
72 | #include <stdio.h> | 73 | #include <stdio.h> |
73 | #include <signal.h> | 74 | #include <signal.h> |
74 | #include <fcntl.h> | 75 | #include <fcntl.h> |
75 | #include <unistd.h> | 76 | #include <unistd.h> |
@@ -139,12 +140,17 @@ void MyPty::error() | |||
139 | // This is code from the Qt DumbTerminal example | 140 | // This is code from the Qt DumbTerminal example |
140 | donePty(); | 141 | donePty(); |
141 | } | 142 | } |
142 | 143 | ||
143 | void MyPty::start() { | 144 | void MyPty::start() { |
144 | char* cmd = "/bin/sh"; | 145 | char* cmd = "/bin/sh"; |
146 | |||
147 | if ( QFile::exists( "/bin/bash" ) ) { | ||
148 | char* cmd = "/bin/bash"; | ||
149 | } | ||
150 | |||
145 | QStrList lis; | 151 | QStrList lis; |
146 | int r =run(cmd, lis, 0, 0); | 152 | int r =run(cmd, lis, 0, 0); |
147 | r = r; | 153 | r = r; |
148 | } | 154 | } |
149 | /*! | 155 | /*! |
150 | start the client program. | 156 | start the client program. |