On Wed, 2010-02-24 at 16:03 +0100, cedric delaunay wrote:
> Hi sshmenu users,
> I'm new user of this this well developped software and I would like now
> automate the configuration from the gnome's applet.
> The goal is to have a main config file calling others configs files
> which are written by a script.
>
> I have seen in changelog of version 3.13 that Grant added "multiple
> config files" functionality but I didn't find the way to use it.
> Did somebody tried this ? and succeed ;) ?
The multiple config file support doesn't do what you're looking for. It
also doesn't really apply to the panel applet version of SSHMenu. If
you use the standalone 'sshmenu' program, you can run multiple instances
and give each one a different config file using the --config-file
command line option (see: man sshmenu).
It would be possible to add support for merging multiple config files on
the fly, by overriding the SSHMenu::Config class - but it would be
fairly complicated.
A simpler solution would be to have a separate script that reads in the
current SSHMenu config (which is just YAML) merges in some config data
from an alternative source and saves out the result as YAML.
Cheers
Grant
|