You are not logged in.

#1 2015-03-17 02:47:15

undercoverA******
Member
Registered: 2015-03-17
Posts: 8

How to apply global GDM/Gnome settings?

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

#2 2015-03-17 15:53:54

gnumdk
Member
Registered: 2009-10-15
Posts: 175

Re: How to apply global GDM/Gnome settings?

# 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

#3 2015-03-17 17:06:41

undercoverA******
Member
Registered: 2015-03-17
Posts: 8

Re: How to apply global GDM/Gnome settings?

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

#4 2015-03-18 20:37:07

Michael Catanzaro
Member
Registered: 2012-11-04
Posts: 50

Re: How to apply global GDM/Gnome settings?

https://developer.gnome.org/gio/stable/GSettings.html (scroll down to Vendor Overrides)

Offline

#5 2015-03-19 02:45:30

undercoverA******
Member
Registered: 2015-03-17
Posts: 8

Re: How to apply global GDM/Gnome settings?

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

#6 2015-03-19 12:37:09

Michael Catanzaro
Member
Registered: 2012-11-04
Posts: 50

Re: How to apply global GDM/Gnome settings?

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.

Offline

#7 2015-03-20 04:31:01

undercoverA******
Member
Registered: 2015-03-17
Posts: 8

Re: How to apply global GDM/Gnome settings?

Michael Catanzaro wrote:
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

#8 2015-03-20 13:25:16

Michael Catanzaro
Member
Registered: 2012-11-04
Posts: 50

Re: How to apply global GDM/Gnome settings?

Um... I suppose you could use an override and then lock the setting; that's what you want, right?

https://help.gnome.org/admin/system-adm … wn.html.en

Offline

Board footer

Powered by FluxBB