On Saturday 10 August 2013 20:25:44 Jan Kundrát wrote:
> On Saturday, 10 August 2013 20:16:07 CEST, Pali Rohár wrote:
> > Is /plugins/ subdir needed? Is there something other planned
> > in lib/trojita? Also Kontact using plugins from
> > $PREFIX/lib/kde4/
> 
> There are two options:
> 
> a) the code loads *.so from $PLUGINDIR and $PLUGINDIR contains
> /trojita/plugins/ in there
> b) the code loads trojita_plugin_*.so from $PLUGINDIR and
> there's no /plugins/ in the path
> 
> Please feel free to pick one of these, it's your code.
> Personally, I find a) cleaner, but our opinions might differ.
> I don't care.
> 
> Jan

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.

-- 
Pali Rohár
pali.ro...@gmail.com

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to