Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is best practice for creating mandatory or default gconf-profiles using the users environment variables. That would make it easy to maintain system-wide profiles and distribute profiles in a corporate network.

For an example, I want to use a Gconf key where some information is defined by environment variables, the key /apps/evolution/mail/accounts and $USER/$USERNAME:

[<?xml version="1.0"?>
<account name="$(USER)@example.com">
<transport save-passwd="true">


I believe that I need a subsystem that processes template profiles into something gconfd can use. I have tried desktop-profiles and sabayon without any luck. Evoldap-backend works only for evolution and feels a little overkill even if I end up with LDAP / Gosa or LDAP / phamm for authentication. Mail, IM and VoIP / Telepathy uses only information that is easy reachable from GECOS (/etc/passwd) and standard login environment. It feels more robust to administer one system-wide template than a profile per user.

share|improve this question

This should be solvable with a simple bash script using standard Linux tools:

  1. Check if the folder /home/"$USER"/.gconf/apps/evolution exists.
  2. If it doesn't exist, copy a template directory over.
  3. Replace the placeholders with sed.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.