-rw-r--r-- | core/tools/quicklauncher/dropins.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
@@ -30,4 +30,9 @@ namespace Opie { | |||
30 | *iface = 0; | 30 | *iface = 0; |
31 | 31 | ||
32 | // This code is very platform specific.. We should find better | ||
33 | // solutions to handle names.. Maybe one central function would be | ||
34 | // better than checking this ".so" stuff all around in the sources.. | ||
35 | // (eilers) | ||
36 | |||
32 | // Below lines from TT then mine again | 37 | // Below lines from TT then mine again |
33 | QString name = libFile; | 38 | QString name = libFile; |
@@ -37,5 +42,9 @@ namespace Opie { | |||
37 | name = name.mid( 3 ); | 42 | name = name.mid( 3 ); |
38 | } | 43 | } |
44 | #ifdef Q_OS_MACX | ||
45 | QString path = QPEApplication::qpeDir() + "/plugins/application/lib"+name+".dylib"; | ||
46 | #else | ||
39 | QString path = QPEApplication::qpeDir() + "/plugins/application/lib"+name+".so"; | 47 | QString path = QPEApplication::qpeDir() + "/plugins/application/lib"+name+".so"; |
48 | #endif | ||
40 | 49 | ||
41 | QLibrary *lib = new QLibrary( path ); | 50 | QLibrary *lib = new QLibrary( path ); |