Diffstat (limited to 'core/apps/embeddedkonsole/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/apps/embeddedkonsole/main.cpp b/core/apps/embeddedkonsole/main.cpp index b851d3e..131e782 100644 --- a/core/apps/embeddedkonsole/main.cpp +++ b/core/apps/embeddedkonsole/main.cpp | |||
@@ -42,18 +42,18 @@ OPIE_EXPORT_APP( OApplicationFactory<Konsole> ) | |||
42 | #include <pwd.h> | 42 | #include <pwd.h> |
43 | #include <sys/types.h> | 43 | #include <sys/types.h> |
44 | 44 | ||
45 | 45 | ||
46 | /* --| main |------------------------------------------------------ */ | 46 | /* --| main |------------------------------------------------------ */ |
47 | int main(int argc, char* argv[]) { | 47 | int main(int argc, char* argv[]) { |
48 | if(setuid(getuid()) !=0) qDebug("setuid failed"); | 48 | if(setuid(getuid()) !=0) odebug << "setuid failed" << oendl; |
49 | if(setgid(getgid()) != 0) qDebug("setgid failed"); // drop privileges | 49 | if(setgid(getgid()) != 0) odebug << "setgid failed" << oendl; // drop privileges |
50 | 50 | ||
51 | QPEApplication a( argc, argv ); | 51 | QPEApplication a( argc, argv ); |
52 | #ifdef FAKE_CTRL_AND_ALT | 52 | #ifdef FAKE_CTRL_AND_ALT |
53 | qDebug("Fake Ctrl and Alt defined"); | 53 | odebug << "Fake Ctrl and Alt defined" << oendl; |
54 | QPEApplication::grabKeyboard(); // for CTRL and ALT | 54 | QPEApplication::grabKeyboard(); // for CTRL and ALT |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | QStrList tmp; | 57 | QStrList tmp; |
58 | const char* shell = getenv("SHELL"); | 58 | const char* shell = getenv("SHELL"); |
59 | 59 | ||
@@ -70,13 +70,13 @@ OPIE_EXPORT_APP( OApplicationFactory<Konsole> ) | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | endpwent(); | 72 | endpwent(); |
73 | } | 73 | } |
74 | 74 | ||
75 | if( putenv((char*)"COLORTERM=") !=0) | 75 | if( putenv((char*)"COLORTERM=") !=0) |
76 | qDebug("putenv failed"); // to trigger mc's color detection | 76 | odebug << "putenv failed" << oendl; // to trigger mc's color detection |
77 | 77 | ||
78 | Konsole m( "test", shell, tmp, TRUE ); | 78 | Konsole m( "test", shell, tmp, TRUE ); |
79 | m.setCaption( Konsole::tr("Terminal") ); | 79 | m.setCaption( Konsole::tr("Terminal") ); |
80 | a.showMainWidget( &m ); | 80 | a.showMainWidget( &m ); |
81 | 81 | ||
82 | return a.exec(); | 82 | return a.exec(); |