Fixed Custom widgets plugins loading path
authorAndrey Paskal <apaskal@gmail.com>
Wed, 18 Oct 2017 11:55:51 +0000 (14:55 +0300)
committerAndrey Paskal <apaskal@gmail.com>
Wed, 18 Oct 2017 11:55:51 +0000 (14:55 +0300)
src/designer/main.cpp
src/plugins/plugins.pro

index 19f1257..e93fb13 100644 (file)
@@ -160,7 +160,8 @@ int main( int argc, char ** argv )
        qApp->addLibraryPath( qApp->applicationDirPath() );
 #else
        pixmap = QPixmap( "/usr/share/ananas/designer/locale/designer-splash-"+lang+".png" );
-//     qApp->addLibraryPath( "/usr/lib/ananas/" );
+  qApp->addLibraryPath( "/usr/lib/ananas/" );
+  qApp->addLibraryPath( "/usr/lib/ananas/designer/" );
 //     qApp->setLibraryPaths( QStringList() <<"/usr/lib/ananas/" );
 #endif
        foreach (QString path, app.libraryPaths())
index 2876c66..676543b 100644 (file)
@@ -54,7 +54,8 @@ TRANSLATIONS = \
 
 #SLASH = /
 unix {
-    target.path = /$(LIBDIR)
+#    target.path = /$(LIBDIR)
+    target.path = /$(LIBDIR)/ananas/designer
 #    lplugin.files = libananasplugin.so
 #    lplugin.extra = cp -f $(DESTDIR)/libananasplugin.so $(INSTALL_ROOT)$(LIBDIR) || true
     lpluginheader.path = /$(INCLUDEDIR)