<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Hi Borys,<BR>
great, this is exactly what I needed, at least for the workaround. When I find the time I will see that I get a glimpse on the sources, to improve what I have to do. But menawhile this will do.<BR>
<BR>
&gt; kinda virus...<BR>
<BR>
yeah, that was my thought when I got the idea of the workaround ;) . But at least it works.<BR>
thanks again<BR>
<BR>
best regards<BR>
<BR>
Stefan<BR>
<BR>
Am Montag, den 01.03.2010, 17:30 +0100 schrieb Borys Jurgiel:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Dnia poniedzia&#322;ek, 1 marca 2010 o 15:00:55 Stefan Kiefer napisa&#322;(a):
&gt; Hi Borys,
&gt; thanks for your answer.
&gt; that might be a way I also had in mind. Otherwise in Windows
&gt; environments the config is written to the registry. I would like to
&gt; avoid interferring with the registry. Whereas that would be manageable
&gt; with an installer, in Linux environments one needs to manipulate the
&gt; config file as you mentioned. Manipulating this file with an installer
&gt; would not be as easy. Otherwise, either the config file as well as the
&gt; registry entries exist only when Qgis was run first. So I have to
&gt; consider this as well.
&gt; Also with Linux there could be an - unlikly - issue that somone has
&gt; changed the QT-config path settings, Whereas this is not to expect.
&gt; 
&gt; Anyway, I believe I need a more sophisticated way, like setting a flag
&gt; while Qgis loads all the plugins. Or a workaround, like activating my
&gt; plugin with one of the default plugins. Manipulating the default plugins
&gt; might be the ultimo ratio, because I would neither to change this
&gt; plugins (in favor of avoiding instabilities) nor risk to overwrite
&gt; possible changes or updates on the users machine!
&gt; 
&gt; Otherwise, does anyone know whether  there is a flag or a property or
&gt; any way to enable/disable plugins programmatical, let's say from another
&gt; plugin?

>From another plugin you can start your plugin for the current session:

qgis.utils.loadPlugin('your_module_name')
qgis.utils.startPlugin('your_module_name')

and also enable it to be automatically loaded from the next time:

settings=QSettings()
settings.setValue('PythonPlugins/your_module_name', QVariant(True))

Yo can let your installer insert such instructions to the PluginInstaller 
(thought it's kinda virus... :) but remember it installs in the system 
location and only its updates go to the user directory, where mask the system 
one.

Many users won't have it installed in the user directory, and your installer 
would create a fake PluginInstaller what masks the true one. So your installer 
should determine if there is PluginInstaller in the user directory and if 
isn't, it can create the fake one, but has to tell to your plugin to remove it 
at the first run. So it's gonna be a little weird ;-)
_______________________________________________
Qgis-developer mailing list
<A HREF="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</A>
<A HREF="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>