summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-01-26 03:28:56 (UTC)
committer kergoth <kergoth>2003-01-26 03:28:56 (UTC)
commit7efc361470c6c91eb06ae7e800bb64aa645f6f73 (patch) (unidiff)
treeafe4a0d664c4e59ae43345f2a6c3431da9dcb809
parent7d889b3840f2d07b2eb2d9ebb3df17d0a4ea686d (diff)
downloadopie-7efc361470c6c91eb06ae7e800bb64aa645f6f73.zip
opie-7efc361470c6c91eb06ae7e800bb64aa645f6f73.tar.gz
opie-7efc361470c6c91eb06ae7e800bb64aa645f6f73.tar.bz2
mkipks
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/main.cpp20
-rwxr-xr-xmkipks1
-rw-r--r--packages1
3 files changed, 20 insertions, 2 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 49b41d6..1e5eb46 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -63,28 +63,44 @@ void initEnvironment()
63 config.writeEntry( "Timezone", tz); 63 config.writeEntry( "Timezone", tz);
64 64
65 config.setGroup( "Language" ); 65 config.setGroup( "Language" );
66 QString lang = config.readEntry( "Language", getenv("LANG") ); 66 QString lang = config.readEntry( "Language", getenv("LANG") );
67 if ( !lang.isNull() ) 67 if ( !lang.isNull() )
68 setenv( "LANG", lang, 1 ); 68 setenv( "LANG", lang, 1 );
69
69} 70}
70 71
71 72
72int initApplication( int argc, char ** argv ) 73int initApplication( int argc, char ** argv )
73{ 74{
75 struct ODevice *odev = ODevice::inst();
76
74 initEnvironment(); 77 initEnvironment();
75 78
76#if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX) 79#if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX)
77 setenv( "QWS_SIZE", "240x320", 0 ); 80 setenv( "QWS_SIZE", "240x320", 0 );
78#endif 81#endif
79 82
80 //Don't flicker at startup: 83 //Don't flicker at startup:
81 QWSServer::setDesktopBackground( QImage() ); 84 QWSServer::setDesktopBackground( QImage() );
82 DesktopApplication a( argc, argv, QApplication::GuiServer ); 85 DesktopApplication a( argc, argv, QApplication::GuiServer );
83 86
84 ODevice::inst ( )-> setSoftSuspend ( true ); 87 int rot;
88 switch ( odev-> rotation( ) ) {
89 case None:
90 rot = 0;
91 case Rot90:
92 rot = 90;
93 case Rot180:
94 rot = 180;
95 case Rot270:
96 rot = 270;
97 }
98 a.setDefaultRotation( rot );
99
100 odev-> setSoftSuspend ( true );
85 101
86 { // init backlight 102 { // init backlight
87 QCopEnvelope e("QPE/System", "setBacklight(int)" ); 103 QCopEnvelope e("QPE/System", "setBacklight(int)" );
88 e << -3; // Forced on 104 e << -3; // Forced on
89 } 105 }
90 106
@@ -121,13 +137,13 @@ int initApplication( int argc, char ** argv )
121 } 137 }
122 138
123 int rv = a.exec(); 139 int rv = a.exec();
124 140
125 delete d; 141 delete d;
126 142
127 ODevice::inst ( )-> setSoftSuspend ( false ); 143 odev-> setSoftSuspend ( false );
128 144
129 return rv; 145 return rv;
130} 146}
131 147
132static const char *pidfile_path = "/var/run/opie.pid"; 148static const char *pidfile_path = "/var/run/opie.pid";
133 149
diff --git a/mkipks b/mkipks
index ffa4ef5..d4e4b38 100755
--- a/mkipks
+++ b/mkipks
@@ -1,9 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2 2
3[ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4 3[ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4
4[ -z "$QTE_BASEVERSION" ] && QTE_BASEVERSION=2.3.4
4[ -z "$QTE_REVISION" ] && QTE_REVISION=3 5[ -z "$QTE_REVISION" ] && QTE_REVISION=3
5DEB_VERSION=2.0 6DEB_VERSION=2.0
6 7
7# Have to do this here, since CVS can't store symlinks 8# Have to do this here, since CVS can't store symlinks
8 9
9mkdir -p $OPIEDIR/etc/rcS.d 10mkdir -p $OPIEDIR/etc/rcS.d
diff --git a/packages b/packages
index b05f90a..fc26ef8 100644
--- a/packages
+++ b/packages
@@ -5,12 +5,13 @@ CONFIG_CALIBRATE core/apps/calibrate calibrate.pro
5 CONFIG_CHESS noncore/games/chesschess.pro 5 CONFIG_CHESS noncore/games/chesschess.pro
6 CONFIG_CONVERTER noncore/unsupported/opiemail/converterconverter.pro 6 CONFIG_CONVERTER noncore/unsupported/opiemail/converterconverter.pro
7 CONFIG_DIALUP noncore/unsupported/netsetup/dialupdialup.pro 7 CONFIG_DIALUP noncore/unsupported/netsetup/dialupdialup.pro
8 CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro 8 CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro
9 CONFIG_GSMTOOL noncore/comm/gsmtoolgsmtool.pro 9 CONFIG_GSMTOOL noncore/comm/gsmtoolgsmtool.pro
10 CONFIG_KEYVIEW development/keyviewkeyview.pro 10 CONFIG_KEYVIEW development/keyviewkeyview.pro
11 CONFIG_ROTTEST development/rottestrottest.pro
11 CONFIG_LAN noncore/unsupported/netsetup/lanlan.pro 12 CONFIG_LAN noncore/unsupported/netsetup/lanlan.pro
12 CONFIG_LIB noncore/unsupported/opiemail/liblib.pro 13 CONFIG_LIB noncore/unsupported/opiemail/liblib.pro
13 CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro 14 CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro
14 CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro 15 CONFIG_LIBFLASH core/multimedia/opieplayer/libflashlibflash.pro
15 CONFIG_LIBOPIE_PIM libopie/pimpim.pro 16 CONFIG_LIBOPIE_PIM libopie/pimpim.pro
16 CONFIG_LIBSQL libsqllibsql.pro 17 CONFIG_LIBSQL libsqllibsql.pro