GNOME Bugzilla – Bug 662079
Request for functionality to update database of a user, as well as for the system.
Last modified: 2012-01-30 05:10:45 UTC
At the moment, it is currently not possible to set gsettings values in a chroot for a particular user. One can create a gsettings override file and use that to set settings for a particular user, however there are some use cases where the desired settings for the user, are not the desired settings for the system. A good example of this is installing a distro like Ubuntu, with the desire to enable accessibility for the first user, however subsequent user accounts that are created on the system should not have accessibility enabled by default. It would be nice if dconf/gsettings had functionality to update a specific user's database from a gsettings override file.
dconf has the ability via its commandline tool ("dconf load") to load a keyfile into the user's database. The format is different than the schema-based gsettings override files, but not too much. Use "dconf dump /" to see an example of the format of the file... Is this what you need?
That would help yes, but how would I populate/create a db for a specific user? I.e I am installing a system, and I want to set some gsettings values in the user's home directory in /target/home/user. Can dconf allow for saving settings for that user from outside a chroot?
You could maybe copy the dconf database from the live user directly into the target user's homedir?
Luke, will the suggestion mentioned in comment#3 work for you ?
Please feel free to reopen the bug in case your scenario is not covered with above suggestions.