author | harlekin <harlekin> | 2002-10-25 18:57:47 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-25 18:57:47 (UTC) |
commit | 1d3135677f1f49b9cc87ebf01f1c4eaab3c450f4 (patch) (side-by-side diff) | |
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 @@ -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); |