From 74a1afb21424a4f69c7a01fda2cc517daf69fd82 Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 17 Nov 2003 16:02:31 +0000 Subject: Fixing the ".so" stuff for MacOS-X .. Quicklauncher apps are now loaded successfully.. --- (limited to 'core/tools') diff --git a/core/tools/quicklauncher/dropins.h b/core/tools/quicklauncher/dropins.h index fe43ec2..3e2b5fd 100644 --- a/core/tools/quicklauncher/dropins.h +++ b/core/tools/quicklauncher/dropins.h @@ -29,6 +29,11 @@ namespace Opie { QRESULT res = QS_FALSE; *iface = 0; + // This code is very platform specific.. We should find better + // solutions to handle names.. Maybe one central function would be + // better than checking this ".so" stuff all around in the sources.. + // (eilers) + // Below lines from TT then mine again QString name = libFile; if ( libFile.findRev(".so") == (int)libFile.length()-3 ) { @@ -36,7 +41,11 @@ namespace Opie { if ( name.find( "lib" ) == 0 ) name = name.mid( 3 ); } +#ifdef Q_OS_MACX + QString path = QPEApplication::qpeDir() + "/plugins/application/lib"+name+".dylib"; +#else QString path = QPEApplication::qpeDir() + "/plugins/application/lib"+name+".so"; +#endif QLibrary *lib = new QLibrary( path ); if ( lib->queryInterface( uuid, iface ) == QS_OK && iface ) { -- cgit v0.9.0.2