Murray,
Thanks for the quick response! Is there something that gconftool does
that is different than copying the %gconf files over by hand?
For example, wouldn't a
~/.gconf/apps/evolution/shell/view_defaults/folder_bar/%gconf.xml
that looks like the following...
<?xml version="1.0"?>
<gconf>
<entry name="width" mtime="1107791890" type="int" value="200">
</entry>
</gconf>
...do the same thing as
gconftool-2 --type=bool --
set /apps/evolution/shell/view_defaults/show_folder_bar "true"
I am actually looking for the bare minimum settings that I would need to
keep evolution from opening up the setup assistant. I just want to put
in the users' email address, real name, and mail server info.
I noticed that the ~/.gconf/apps/evolution/mail/%gconf.xml contains all
of this information. gconftool-1 -g /apps/evolution/mail/accounts gives
me that information from that file. However, when I have this in place,
evolution doesn't use it. It instead prompts the user for new values in
the evolution setup assistant.
Any ideas?
Thanks,
Brett
On Tue, 2005-02-08 at 23:20 +0800, Murray Trainer wrote:
> Brett Anderson wrote:
>
> >Hello,
> >
> >I am trying to generate ~/.gconf/apps/evolution and ~/.evolution files
> >from a template so that users will not have to configure evolution
> >themselves using the Evolution Setup Assistant. I am doing the
> >following:
> >
> >Removing .evolution and .gconf/apps/evolution for a user
> >
> >Going through the Evolution Setup Assistant, and letting it recreate
> >those files.
> >
> >I then copy these files into other user's home directories, changing
> >things such as email address, real name, and paths that reference the
> >user's home directory.
> >
> >I have been copying everything except the .db files in ~/.evolution.
> >I have made sure that the files have proper permissions and ownership by
> >the users that they are being used by.
> >
> >When the user starts up evolution it opens up the Evolution Setup
> >Assistant and overwrites the %gconf.xml files that I put in place for
> >them. (e.g. ~/.gconf/apps/evolution/mail/%gconf.xml)
> >
> >Is there something else I need to be copying? Is there anything special
> >I need to do to get this to work that I am missing? What is evolution
> >seeing(or not seeing) that makes it run the Evolution Setup Assistant
> >and regenerate the config file?
> >
> >Thanks,
> >Brett
> >
> >
> Hi Brett,
>
> You need to use gconftool2 as shown in my script at the bottom. The
> account stuff will be a bit messy when I get around to it - might have
> to use sed to replace strings as shown here:
>
> http://glasnost.beeznest.org/articles/118
>
> Let me know if you get the account stuff working especially the
> encrypted passwords. You could have a generic Evolution setup in
> /etc/skel and then the script could be run from a global directory in
> their login script. I am going to run it after creating a new user in
> Webmin to set their Evolution defaults using "su -c $GCONF_SCRIPT'
> $NEWUSER"
>
> Murray
>
>
> #!/bin/sh
> #
> # Configure general GNOME settings for a new user
> #
> # Set Firefox as hander for HTTP and HTTPS URL's
> gconftool-2 --type=string --set /desktop/gnome/url-handlers/http/command
> "/usr/bin/firefox %s"
> gconftool-2 --type=string --set
> /desktop/gnome/url-handlers/https/command "/usr/bin/firefox %s"
> # Set Evolution as hander for MAILTO URL's
> gconftool-2 --type=string --set
> /desktop/gnome/url-handlers/mailto/command "/opt/gnome/bin/evolution %s"
> #
> # Configure Evolution settings for new user
> #
> # Show folder bar
> gconftool-2 --type=bool --set
> /apps/evolution/shell/view_defaults/show_folder_bar "true"
> # Make fonts larger
> gconftool-2 --type=bool --set
> /apps/evolution/mail/display/fonts/use_custom "true"
> gconftool-2 --type=string --set
> /apps/evolution/mail/display/fonts/monospace "Monospace 14"
> gconftool-2 --type=string --set
> /apps/evolution/mail/display/fonts/variable "Sans 14"
> # Composer View - add CC and BCC
> gconftool-2 --type=bool --set /apps/evolution/mail/composer/view/Cc "true"
> gconftool-2 --type=bool --set /apps/evolution/mail/composer/view/Bcc "true"
> # Timezone - default to Australia/Perth - should pick this up from TZ
> variable
> gconftool-2 --type=string --set
> /apps/evolution/calendar/display/timezone "Australia/Perth"
>
_______________________________________________
evolution maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/evolution