author | sandman <sandman> | 2002-12-07 19:58:03 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-07 19:58:03 (UTC) |
commit | d856a53635479f5ace72159aa513480ecd90bf1e (patch) (side-by-side diff) | |
tree | aba6aaa2cc9168ebd364308f37cdc9c4286c6703 /library/global.cpp | |
parent | 09aa2b9a766e02e52ad64c0294e8b72e6fda8c85 (diff) | |
download | opie-d856a53635479f5ace72159aa513480ecd90bf1e.zip opie-d856a53635479f5ace72159aa513480ecd90bf1e.tar.gz opie-d856a53635479f5ace72159aa513480ecd90bf1e.tar.bz2 |
- removed the libpreload stuff from global.cpp
- added qt_override.* which provides the same functionality as libpreload
(the new -override patch for Qt/E is needed for this to work/compile)
- changed qpeapplication a bit to accomodate the new interface
-rw-r--r-- | library/global.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/library/global.cpp b/library/global.cpp index 2162e02..d6ba84f 100644 --- a/library/global.cpp +++ b/library/global.cpp @@ -604,15 +604,5 @@ void Global::invoke(const QString &c) } else #endif - { - char *oldpre = ::getenv ( "LD_PRELOAD" ); - - QString newpre = QPEApplication::qpeDir ( ) + "/lib/libpreload.so"; - if ( QFile::exists ( newpre )) { - if ( oldpre && oldpre [0] ) - newpre = newpre + ":" + oldpre; - ::setenv ( "LD_PRELOAD", newpre. latin1( ), 1 ); - qDebug ( "\nPRELOADING\n" ); - } - + { if ( !::vfork() ) { for ( int fd = 3; fd < 100; fd++ ) @@ -624,8 +614,4 @@ void Global::invoke(const QString &c) _exit( -1 ); } - if ( oldpre ) - ::setenv ( "LD_PRELOAD", oldpre, 1 ); - else - ::unsetenv ( "LD_PRELOAD" ); } StartingAppList::add( list[0] ); |