author | zecke <zecke> | 2002-10-23 21:37:35 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-23 21:37:35 (UTC) |
commit | 7f2dc6af10c299075387336f5b115625294151b2 (patch) (unidiff) | |
tree | e478d664ddbeeabd0e544c0155de65fabacb5d44 | |
parent | eb521bfc7d3a05f900f6c81db25aa4cea572f064 (diff) | |
download | opie-7f2dc6af10c299075387336f5b115625294151b2.zip opie-7f2dc6af10c299075387336f5b115625294151b2.tar.gz opie-7f2dc6af10c299075387336f5b115625294151b2.tar.bz2 |
the argv[0]="embedk" did not work the way i wanted
-rw-r--r-- | noncore/apps/opie-console/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/main.cpp b/noncore/apps/opie-console/main.cpp index 7f9f038..3b4321a 100644 --- a/noncore/apps/opie-console/main.cpp +++ b/noncore/apps/opie-console/main.cpp | |||
@@ -82,25 +82,25 @@ void FixIt::fixIt() { | |||
82 | ::rename("/etc/inittab", QPEApplication::qpeDir() + "/etc/inittab" ); | 82 | ::rename("/etc/inittab", QPEApplication::qpeDir() + "/etc/inittab" ); |
83 | QFile file( "/etc/inittab" ); | 83 | QFile file( "/etc/inittab" ); |
84 | if ( file.open(IO_WriteOnly | IO_Raw ) ) { | 84 | if ( file.open(IO_WriteOnly | IO_Raw ) ) { |
85 | file.writeBlock(m_file,strlen(m_file) ); | 85 | file.writeBlock(m_file,strlen(m_file) ); |
86 | } | 86 | } |
87 | file.close(); | 87 | file.close(); |
88 | ::kill( SIGHUP, 1 ); | 88 | ::kill( SIGHUP, 1 ); |
89 | } | 89 | } |
90 | #endif | 90 | #endif |
91 | 91 | ||
92 | 92 | ||
93 | int main(int argc, char **argv) { | 93 | int main(int argc, char **argv) { |
94 | argv[0]="embeddedkonsole"; | 94 | // too bad this gives us trouble the taskbar... argv[0]="embeddedkonsole"; |
95 | QPEApplication app( argc, argv ); | 95 | QPEApplication app( argc, argv ); |
96 | 96 | ||
97 | #ifdef FSCKED_DISTRIBUTION | 97 | #ifdef FSCKED_DISTRIBUTION |
98 | qWarning("fscked"); | 98 | qWarning("fscked"); |
99 | FixIt it; | 99 | FixIt it; |
100 | it.fixIt(); | 100 | it.fixIt(); |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | MainWindow mw; | 103 | MainWindow mw; |
104 | mw.setCaption(QObject::tr("Opie console") ); | 104 | mw.setCaption(QObject::tr("Opie console") ); |
105 | app.showMainWidget( &mw ); | 105 | app.showMainWidget( &mw ); |
106 | 106 | ||