Re: [trojita] GSoC: plugins & loader

2013-09-11 Thread Jan Kundrát
On Wednesday, 11 September 2013 18:25:52 CEST, Thomas Lübking wrote: The security argument by itself is actually weak - if you start doing sth. stupid as running a production binary from a user writable path, you're screwed anyway - regardless of whether you can read plugins from there as well:

Re: [trojita] GSoC: comments as of pali-gsoc@v0.3.93-325-g23bc463

2013-09-11 Thread Jan Kundrát
On Wednesday, 11 September 2013 17:45:02 CEST, Pali Rohár wrote: First version of code is in my pali-gsoc branch. Looks like you based your code on something from cmake's git. Could you please make a separate commit that adds the original file (possibly under the new name, not the original on

Re: [trojita] GSoC: plugins & loader

2013-09-11 Thread Jan Kundrát
On Wednesday, 11 September 2013 17:50:52 CEST, Pali Rohár wrote: 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. You mentioned

Re: [trojita] GSoC: plugins & loader

2013-09-11 Thread Pali Rohár
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* > > > > QCoreA

Re: [trojita] GSoC: plugins & loader

2013-09-11 Thread Pali Rohár
On Wednesday 11 September 2013 17:54:40 Jan Kundrát wrote: > On Wednesday, 11 September 2013 17:50:52 CEST, Pali Rohár wrote: > > And PluginManager will use list > > QCoreApplication::libraryPaths() for searching for plugins > > in subdir "/trojitaplugins" - like any other qt plugins > > (style, e

Re: [trojita] Re: GSoC: comments as of pali-gsoc@v0.3.93-325-g23bc463

2013-09-11 Thread Pali Rohár
On Wednesday 11 September 2013 16:26:47 Pali Rohár wrote: > On Saturday 10 August 2013 21:12:22 Jan Kundrát wrote: > > On Saturday, 10 August 2013 19:00:34 CEST, Pali Rohár wrote: > > > What about to have two options OFF and AUTO? And write > > > status if feature will be compiled or not (depending

[trojita] Re: GSoC: plugins & loader

2013-09-11 Thread Thomas Lübking
On Mittwoch, 11. September 2013 18:07:36 CEST, Pali Rohár wrote: Now I looked into qt4 source code and default priority is: 1. QLibraryInfo::location(QLibraryInfo::PluginsPath) 2. QCoreApplication::applicationFilePath() 3. QT_PLUGIN_PATH In addition, in Kontact the output of tha list will lik

Re: [trojita] Re: GSoC: comments as of pali-gsoc@v0.3.93-325-g23bc463

2013-09-11 Thread Pali Rohár
On Saturday 10 August 2013 21:12:22 Jan Kundrát wrote: > On Saturday, 10 August 2013 19:00:34 CEST, Pali Rohár wrote: > > What about to have two options OFF and AUTO? And write > > status if feature will be compiled or not (depending on > > find_package)? > > Kitware talks about something similar