FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    leebickmtu Guest

    Change GDM time format and lockscreen background

    Thought I would share this since I've seen it asked about before without a clear answer and took me awhile to figure out.

    On Gnome 3 to change the GDM screen time format issue the following command with either 12h or 24h to switch time formats.
    Code:
    sudo -u gdm dbus-launch dconf write /org/gnome/desktop/interface/clock-format "\"12h\""
    And issue this command to change the GDM lock screen background. Use any .jpg image but make sure it is in a directory to which GDM will have access. /usr/share/backgrounds is a safe bet.
    Code:
    sudo -u gdm dbus-launch dconf write /org/gnome/desktop/background/picture-uri "\"file:///usr/share/backgrounds/gnome/Stripes.jpg\""

  2. #2
    Join Date
    Jun 2008
    Location
    St Louis, MO, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change GDM time format and lockscreen background

    Thanks for this. The only issue I had with this is that it is for the gdm user only. In my case I wanted this to be applied system wide -- to the login screen and all users by defauolt. To do this I did the following:

    Code:
    cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.override << EOF
    [org.gnome.desktop.interface]
    clock-format='12h'
    EOF
    glib-compile-schemas /usr/share/glib-2.0/schemas
    This changes the default for the clock-format from 24h to 12h system wide. If a user explicitly has set it to something different, their settings will override this but for those who haven't set it, such as in the case of the gdm user, this takes care of you.

    It important to understand the two different methods. The method described by leebickmtu works for explicitly setting the value for an individual user -- gdm in the case of the login screen -- while the method I describe changes the default value that will be applied to a user in the event they haven't explicitly defined a value.

  3. #3
    leebickmtu Guest

    Re: Change GDM time format and lockscreen background

    Quote Originally Posted by loleary
    This changes the default for the clock-format from 24h to 12h system wide.
    loleary, this is actually what I really wanted to do. I just wasn't sure how to get it to work. So thanks for posting. I'm not at my computer right now to try it, but I'm sure it will work. Thanks
    Last edited by leebickmtu; 22nd August 2013 at 10:02 PM.

Similar Threads

  1. Howto Change GDM background?
    By sgage in forum F17 Development Forum
    Replies: 2
    Last Post: 5th May 2012, 06:01 PM
  2. [SOLVED] Can't Change Date/Time Format in F15?
    By bryanmoore in forum Using Fedora
    Replies: 4
    Last Post: 10th July 2011, 02:27 AM
  3. [SOLVED] Change background in GDM?
    By DBelton in forum F15 Development
    Replies: 3
    Last Post: 7th April 2011, 05:46 AM
  4. GDM Background has changed!
    By cs1984 in forum Using Fedora
    Replies: 0
    Last Post: 15th June 2009, 02:09 PM
  5. Background color of GDM Login Screen
    By Mat in forum Using Fedora
    Replies: 8
    Last Post: 3rd September 2005, 02:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •