After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662079 - Request for functionality to update database of a user, as well as for the system.
Request for functionality to update database of a user, as well as for the sy...
Status: RESOLVED INCOMPLETE
Product: dconf
Classification: Core
Component: dconf
git master
Other Linux
: Normal enhancement
: ---
Assigned To: dconf-maint
dconf-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-18 10:14 UTC by Luke Yelavich
Modified: 2012-01-30 05:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luke Yelavich 2011-10-18 10:14:24 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.
Comment 1 Allison Karlitskaya (desrt) 2011-10-18 15:47:59 UTC
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?
Comment 2 Luke Yelavich 2011-10-20 05:22:22 UTC
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?
Comment 3 Allison Karlitskaya (desrt) 2011-10-31 23:02:29 UTC
You could maybe copy the dconf database from the live user directly into the target user's homedir?
Comment 4 Akhil Laddha 2011-12-15 05:37:52 UTC
Luke, will the suggestion mentioned in comment#3 work for you ?
Comment 5 Akhil Laddha 2012-01-30 05:10:45 UTC
Please feel free to reopen the bug in case your scenario is not covered with above suggestions.