Hi, On 01/09/2012 02:46 PM, Clarkson, Matt wrote: > Hi there everyone, > > On occasion, I have seen the fact that the help files fail to register, > resulting in the message from berryQtAssistantUtil.cpp line 303 "You may not > have write permission in.." complaining of no write permission in your own > home folder, which in my case is definitely wrong. So, i poked around for a > bit, and have a few questions: Yes, this error message is probably most of the time misleading. The problem is that we cannot get a more detailed error message from the registration process unless we want the QtAssistant program pop up a message box for each successfully registered help file on start-up. I guess a generic error message is better than one which is misleading in 99% of the cases... > When the application plugin is loaded, for example the > QmitkExtApplicationPlugin, the CTK plugin framework calls > start(ctkPluginContext *context). This registers a QCHPluginListener, and it > is the pluginListener->processPlugins() that registers the help files. > However, in the QmitkExtAppWorkbenchAdvisor, there is another call to > berry::QtAssistantUtil::RegisterQCHFiles(bundles). > > Is one of these redundant, or is one of these duplication of effort? The QCHPluginListener takes care of CTK plug-ins and the call in the QmitkExtAppWorkbenchAdvisor registers help files of legacy BlueBerry bundles. So the two calls should register help files from two disjoint sets of plug-ins.
Starting your application with --BlueBerry.consoleLog should print exactly the .qch files which are being registered. > The reason I ask is to determine if the possible reason for the above error > message is that the file system sometimes holds locks for too long, and hence > some of the registering/un-registering second time round fails. We once had a problem with multiple registered QCHPluginListener instances in the past, which gave very similar errors. I can't remember the actual constellation of enabled plug-ins though... Hope that helps, Sascha ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
