summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/global.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/global.cpp b/library/global.cpp
index 42c2729..2162e02 100644
--- a/library/global.cpp
+++ b/library/global.cpp
@@ -597,28 +597,26 @@ void Global::invoke(const QString &c)
#ifdef HAVE_QUICKEXEC
QString libexe = qpeDir()+"/binlib/lib"+args[0] + ".so";
qDebug("libfile = %s", libexe.latin1() );
if ( QFile::exists( libexe ) ) {
qDebug("calling quickexec %s", libexe.latin1() );
quickexecv( libexe.utf8().data(), (const char **)args );
} else
#endif
{
char *oldpre = ::getenv ( "LD_PRELOAD" );
- extern bool opie_block_style;
-
QString newpre = QPEApplication::qpeDir ( ) + "/lib/libpreload.so";
- if ( opie_block_style && QFile::exists ( newpre )) {
+ 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++ )
::close( fd );
::setpgid( ::getpid(), ::getppid() );
// Try bindir first, so that foo/bar works too
::execv( qpeDir()+"/bin/"+args[0], (char * const *)args );