You are not logged in.
Instead of editing dconf for each user I'm interested in applying specific settings system wide by default and possibly locking them from normal user access:
Here's an example:
Instead of using dconf-editor to change the following settings for each user(including gdm) I'd like to put this in a text file somewhere and have gnome pick it up automatically:
1) User dconf-editor
2) Navigate to org --> gnome --> settings-daemon --> plugins --> power
3) Change the power settings for sleep-inactive-ac-timeout etc... how you'd like them just like you would for any other user.
Offline
# vi /usr/share/glib-2.0/schemas/19_mysettings.override
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-timeout=7200
# glib-compile-schemas /usr/share/glib-2.0/schemas
Offline
Thank you! I will try it when I get home tonight. Can you point me toward the documentation this came from? I searched the gnome system administrators wiki.
Offline
https://developer.gnome.org/gio/stable/GSettings.html (scroll down to Vendor Overrides)
Offline
Thanks, guys.
I guess we can mark this as solved.
I read the aforementioned documentation and the only thing technically incorrect about gnumdk's answer is the following: the file needs to be named 19_whatever.bgschema.override to work.
So I did the following:
1.
sudo nano /usr/share/glib-2.0/schemas/19_mysettings.gschema.override
2. Edit the file like so:
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-timeout=7200
3,
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
And it works! I tried to lock those settings with dconf, but had no luck there. But this is a good start. Thank you.
Last edited by undercoverA****** (2015-03-19 02:48:25)
Offline
And it works! I tried to lock those settings with dconf, but had no luck there. But this is a good start. Thank you.
dconf has the notion of unset (default) settings: if there is no setting explicitly set, then the default is used. That allows you to change the default, then users will get the change if they haven't touched the setting before and not if they have touched the setting! Your override just changes the default.
Offline
undercoverA****** wrote:And it works! I tried to lock those settings with dconf, but had no luck there. But this is a good start. Thank you.
dconf has the notion of unset (default) settings: if there is no setting explicitly set, then the default is used. That allows you to change the default, then users will get the change if they haven't touched the setting before and not if they have touched the setting! Your override just changes the default.
How to change this?
Offline
Um... I suppose you could use an override and then lock the setting; that's what you want, right?
Offline