gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] plugins @!#$%!


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] plugins @!#$%!
Date: Fri, 10 Jan 2003 10:04:38 +0100
User-agent: Mutt/1.3.22.1i

> I have noticed that the plugin manager disregards the plugin.cfg in the gui 
> directory now. Is it documented somewhere in which order plugins are loaded 
> now, and where to change preferences? Or do I have to browse the sources? 
> Apologies if I missed the relevant email.
I announced this change when I announced that plugin load
order is now stored in the database. It is also documented in
the source. Here is the text again:

Upon startup GnuMed tries to read a list of which plugins to
load. It looks in several places:

1) in the database (the config tables in gmconfiguration.sql
   need to be imported)
   a) as the current user on the current machine
   b) as the current user on the "default" machine
   c) as the "default" user on the current machine
   d) as the "default" user on the "default" machine
2) in the file plugins.conf in the corresponding plugin
   directory (note that the format changed - this is now
   expected to be a standard gmCfg config file, group is
   "plugins", the list option "load order")
3) direct scan of the plugin directory
         
If any of the stages one b-d finds corresponding data that
configuration is saved specific to the current user/machine.

If stage two finds a plugins.conf file it assumes that the
admin has set up a default for all users of this machine and
thus writes that configuration into the database specific to
the current user/machine.

Stage three will always load all available plugins. It will
therefore write that configuration into the database specific
to the machine but not specific to a user (eg. to the default
user).

Subsequent loading will thus find the configuration at earlier
stages. Thusly the client should be autoconfiguring to a
certain degree.

I have not yet connected to the backend explicit add/drop of
plugins via Ian's new popup menu. This will come next.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]