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 738260 - Allow customisation of the login prompt (both in gdm and in screen-shield)
Allow customisation of the login prompt (both in gdm and in screen-shield)
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: background
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 695662 751359 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-10-09 19:07 UTC by Colin Guthrie
Modified: 2018-10-19 15:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-shell part of the patch (4.56 KB, patch)
2014-10-09 19:09 UTC, Colin Guthrie
none Details | Review
gsettings-desktop-schemas part. (3.46 KB, patch)
2014-10-09 19:11 UTC, Colin Guthrie
none Details | Review
Another patch, this time for gnome-tweak-tool to allow users to customise this (1.54 KB, patch)
2015-01-13 17:52 UTC, Colin Guthrie
none Details | Review
gnome-shell part of the patch (4.78 KB, patch)
2016-02-17 09:25 UTC, Colin Guthrie
none Details | Review
gsettings-desktop-schemas part. (3.45 KB, patch)
2016-02-17 09:26 UTC, Colin Guthrie
none Details | Review

Description Colin Guthrie 2014-10-09 19:07:29 UTC
This is a change to allow the customisation of the background shown on the login prompts.

This is a follow up to a throw-away patch that was written by Ray Strode at my request during the Mageia 4 release cycle to allow us to customise things a little and provide some branding.

Recent changes in gnome-shell background handling meant that that patch no longer worked, so I took the opportunity to tidy it up and write it properly.

OOTB, the look+feel should be retained to what it is currently, but a few simple schema overrides (or user customisations) and you can tailor it to taste!

Patches (to gnome-shell and gsettings-desktop-schemas) to follow.
Comment 1 Colin Guthrie 2014-10-09 19:09:30 UTC
Created attachment 288170 [details] [review]
gnome-shell part of the patch
Comment 2 Colin Guthrie 2014-10-09 19:11:38 UTC
Created attachment 288172 [details] [review]
gsettings-desktop-schemas part.
Comment 3 Bastien Nocera 2014-11-07 10:47:01 UTC
Why do we need a separate schema for gdm? gdm has its own user, and thus we should be able to make changes to the background directly to the gdm user. Isn't that right?
Comment 4 Colin Guthrie 2014-11-07 11:09:06 UTC
(In reply to comment #3)
> Why do we need a separate schema for gdm? gdm has its own user, and thus we
> should be able to make changes to the background directly to the gdm user.
> Isn't that right?

Hmmm, so you mean that the "desktop" background can be the schema used for the password-entry screen as that's gdm's equiv of a "desktop"?

i.e. just change:
  const LOGIN_SCHEMA = 'org.gnome.desktop.background.login';
to
  const LOGIN_SCHEMA = 'org.gnome.desktop.background';

and then set up the desired customisation for the gdm user only?

In principle that's OK for the initial login screen, but does that also apply to the screen shield unlock screen after a user has logged in? I thought those preferences were taken from the current user? If so, then we would still need separate schemas otherwise the users desktop background would leak to the password entry screen.
Comment 5 Rui Matos 2014-11-07 13:11:54 UTC
(In reply to comment #3)
> Why do we need a separate schema for gdm? gdm has its own user, and thus we
> should be able to make changes to the background directly to the gdm user.
> Isn't that right?

How does this work? It would be great to have a system wide gsettings service to set system wide settings that work as default fallbacks in case the user setting is set to the default value but no such service exists currently.

I also don't see how this patch helps the gdm session given that you are not able to modify the gdm user's setting from a regular user session.
Comment 6 Colin Guthrie 2015-01-13 17:52:43 UTC
Created attachment 294452 [details] [review]
Another patch, this time for gnome-tweak-tool to allow users to customise this

Another patch (because even tho' we have traditionally customised this as a distro for years, I got sick of our distro default for my user account. Still kept the defaults for actual login tho' (gdm user) - this is just for unlock (my user))

Also adding this to gently prod Ray to review it (even tho' he doesn't like the idea generally, I feel I have the general principle on my side! Go on Ray... you know you like this idea really... :p)
Comment 7 Colin Guthrie 2015-01-13 17:55:41 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Why do we need a separate schema for gdm? gdm has its own user, and thus we
> > should be able to make changes to the background directly to the gdm user.
> > Isn't that right?
> 
> How does this work? It would be great to have a system wide gsettings service
> to set system wide settings that work as default fallbacks in case the user
> setting is set to the default value but no such service exists currently.

You can provide overrides for this (typically in distro theme packages) in the form of ini-like files e.g.:

/usr/share/glib-2.0/schemas/glib2-branding.gschema.override

This then sets the default values for all users.

> I also don't see how this patch helps the gdm session given that you are not
> able to modify the gdm user's setting from a regular user session.

It doesn't help the gdm session, only your own user (or the defaults - which gdm also uses - if you provide a gschema.override as mentioned above.
Comment 8 Florian Müllner 2015-01-13 18:03:52 UTC
Not sure we want customization of the system background, but let's ask the design team ...
Comment 9 Florian Müllner 2015-06-23 08:09:05 UTC
*** Bug 751359 has been marked as a duplicate of this bug. ***
Comment 10 Colin Guthrie 2015-06-24 08:34:50 UTC
Olav tells me the patch no longer applies, so I'll look at rediffing it shortly.
Comment 11 Olav Vitters 2015-06-24 18:40:17 UTC
Same for the gsettings-desktop-schemas one, but that I was able to rediff; just take it from Cauldron (and verify:-P)
Comment 12 Colin Guthrie 2016-02-17 09:25:24 UTC
Created attachment 321467 [details] [review]
gnome-shell part of the patch
Comment 13 Colin Guthrie 2016-02-17 09:26:08 UTC
Created attachment 321468 [details] [review]
gsettings-desktop-schemas part.
Comment 14 Colin Guthrie 2016-02-17 09:28:27 UTC
OK, so my definition of "shortly" was sadly about seven months! Took me that long to get up and running with latest Gnome again. Sorry for the delay.

Rediff was actually pretty much automatic (git did it all). Running here fine as before.

Please consider this as an upstreamable option. The code is relatively minimal (and I'd be happy to do a second patch to rename variables as I admit it can be a little confusing if that helps grease the wheels).
Comment 15 Ray Strode [halfline] 2016-03-08 15:04:42 UTC
*** Bug 695662 has been marked as a duplicate of this bug. ***
Comment 16 Chingkai Chu 2018-10-19 05:46:07 UTC
I filed an issue to track this bug: https://gitlab.gnome.org/GNOME/gnome-shell/issues/680
Comment 17 André Klapper 2018-10-19 15:11:43 UTC
Closing this task as it has been moved to https://gitlab.gnome.org/GNOME/gnome-shell/issues/680 which has a patch attached.