author | llornkcor <llornkcor> | 2002-04-28 23:08:31 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-28 23:08:31 (UTC) |
commit | 3a7ed24bd010b3313b2260a35c68cfc3b49125b2 (patch) (unidiff) | |
tree | 1e478a7ab2bf05539d6f570db771ccab4d06da81 /core/apps/embeddedkonsole/main.cpp | |
parent | 28d8806d21ec8fbc806d80614fd496f6b5ca6b55 (diff) | |
download | opie-3a7ed24bd010b3313b2260a35c68cfc3b49125b2.zip opie-3a7ed24bd010b3313b2260a35c68cfc3b49125b2.tar.gz opie-3a7ed24bd010b3313b2260a35c68cfc3b49125b2.tar.bz2 |
debug
Diffstat (limited to 'core/apps/embeddedkonsole/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/apps/embeddedkonsole/main.cpp b/core/apps/embeddedkonsole/main.cpp index e3ba346..b3c0453 100644 --- a/core/apps/embeddedkonsole/main.cpp +++ b/core/apps/embeddedkonsole/main.cpp | |||
@@ -29,24 +29,25 @@ | |||
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | 31 | ||
32 | 32 | ||
33 | /* --| main |------------------------------------------------------ */ | 33 | /* --| main |------------------------------------------------------ */ |
34 | int main(int argc, char* argv[]) | 34 | int main(int argc, char* argv[]) |
35 | { | 35 | { |
36 | setuid(getuid()); setgid(getgid()); // drop privileges | 36 | setuid(getuid()); setgid(getgid()); // drop privileges |
37 | 37 | ||
38 | QPEApplication a( argc, argv ); | 38 | QPEApplication a( argc, argv ); |
39 | 39 | ||
40 | #ifdef FAKE_CTRL_AND_ALT | 40 | #ifdef FAKE_CTRL_AND_ALT |
41 | qDebug("Fake Ctrl and Alt defined"); | ||
41 | QPEApplication::grabKeyboard(); // for CTRL and ALT | 42 | QPEApplication::grabKeyboard(); // for CTRL and ALT |
42 | #endif | 43 | #endif |
43 | 44 | ||
44 | QStrList tmp; | 45 | QStrList tmp; |
45 | const char* shell = getenv("SHELL"); | 46 | const char* shell = getenv("SHELL"); |
46 | if (shell == NULL || *shell == '\0') | 47 | if (shell == NULL || *shell == '\0') |
47 | shell = "/bin/sh"; | 48 | shell = "/bin/sh"; |
48 | 49 | ||
49 | // sh is completely broken on familiar. Let's try to get something better | 50 | // sh is completely broken on familiar. Let's try to get something better |
50 | if ( qstrcmp( shell, "/bin/shell" ) == 0 && QFile::exists( "/bin/bash" ) ) | 51 | if ( qstrcmp( shell, "/bin/shell" ) == 0 && QFile::exists( "/bin/bash" ) ) |
51 | shell = "/bin/bash"; | 52 | shell = "/bin/bash"; |
52 | 53 | ||