On Sunday, 11 August 2013 08:54:58 CEST, Pali Rohár wrote:
I think "trojita_plugin_" prefix is needed because plugins should
be usable also from application directory (when trojita is not
installed to system path). And it is better to tell qpluginloader
to try open only files which could be plugins (eg. have prefix
"trojita_plugin_") instead trying to open all files in specified
directory (e.g. application directory /usr/bin/). So then
/plugins/ subdir in PLUGINDIR is not needed.
I didn't think of that, thank you.
It seems to me that dlopening /usr/bin/trojita_plugin_* is not exactly a
good idea, either; the potential for collisions is IMHO real. What about
configuring cmake to use a subdirectory during build, and at runtime, check
$APPDIR/plugins/trojita_plugin_* as well as $PLUGINDIR/trojita_plugin_*?
Cheers,
Jan
--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/