On Tuesday 10 September 2013 17:23:53 Pali Rohár wrote: > On Tuesday 10 September 2013 17:21:20 Pali Rohár wrote: > > On Tuesday 10 September 2013 17:15:41 Jan Kundrát wrote: > > > On Tuesday, 10 September 2013 11:52:35 CEST, Pali Rohár > > wrote: > > > > And what about using *only* > > > > QCoreApplication::libraryPaths() for searching trojita > > > > plugins? > > > > > > Would you like to store plugins as > > > /usr/bin/trojita-plugins/trojita_plugin_foo.so? I > > > wouldn't. > > > > No, with above I mean that Qt already searching for plugins > > also in /usr/bin/<plugintype>/ > > Also it is possible to add plugin path specified at compile > time to QCoreApplication::libraryPaths() list.
Now I changed plugin code in my pali-gsoc branch. All plugins are installed to directory $PLUGIN_DIR/trojitaplugins (PLUGIN_DIR can be configured at compile time). At startup in AppVersion::setCoreApplicationData trojita will add $PLUGIN_DIR to QCoreApplication::addLibraryPath(). And PluginManager will use list QCoreApplication::libraryPaths() for searching for plugins in subdir "/trojitaplugins" - like any other qt plugins (style, etc.). This looks like common method for using qt plugins. Look at code if you are OK with these changes. -- Pali Rohár [email protected]
signature.asc
Description: This is a digitally signed message part.
