You are not logged in.

#1 2011-05-04 19:39:54

youjh
Member
From: Cincinnati
Registered: 2009-12-07
Posts: 50

Gnome 3 -> Change login background

I just installed Gnome 3 and am running in fallback mode.

In Gnome 2 was able to customize the login window background. Is there a way to change the default background in Gnome 3?

I'm ok with overwriting the default background picture, as well.

Thanks!

Last edited by youjh (2011-05-04 20:51:41)


Code can be clean, fast, or object oriented. Pick two.

Offline

#2 2011-05-04 19:49:23

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

nobody reads the wiki this days?


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-05-04 20:01:09

youjh
Member
From: Cincinnati
Registered: 2009-12-07
Posts: 50

Re: Gnome 3 -> Change login background

Neither the wiki nor you are being helpful.


Code can be clean, fast, or object oriented. Pick two.

Offline

#4 2011-05-04 20:06:53

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

youjh wrote:

Neither the wiki nor you are being helpful.

don't be ignorant and read the wiki. i know for sure that exists since I added that info.

https://wiki.archlinux.org/index.php/GN … tomization


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-05-04 20:29:39

youjh
Member
From: Cincinnati
Registered: 2009-12-07
Posts: 50

Re: Gnome 3 -> Change login background

No, you're misunderstanding me.

I know how to change the *Desktop* background, which is what your command on the wiki does.

I want to change the *Login* background, at the GDM password screen, which your command does *not* do.

That's why the wiki does not help me.


Code can be clean, fast, or object oriented. Pick two.

Offline

#6 2011-05-04 20:34:24

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: Gnome 3 -> Change login background

Do you try the command? It's change GDM not a desktop background


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#7 2011-05-04 20:36:31

youjh
Member
From: Cincinnati
Registered: 2009-12-07
Posts: 50

Re: Gnome 3 -> Change login background

Yeah, I just did. It changed my desktop background, not my login.

It sets "org.gnome.desktop.background," which is the desktop background


Code can be clean, fast, or object oriented. Pick two.

Offline

#8 2011-05-04 20:39:35

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Gnome 3 -> Change login background

That's why you have to play with that suing and exporting stuff - so it'd be gdm's settings, not your user's.

Offline

#9 2011-05-04 20:41:29

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Gnome 3 -> Change login background

The wiki procedure, e.g.

$ su -
Password: 
[root@first-desktop ~]# su - gdm -s /bin/bash
[gdm@first-desktop ~]$ dbus-launch
No protocol specified
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CIylRIX6Qz,guid=17e852f3d2ebc593113ace52000007d5
DBUS_SESSION_BUS_PID=12403
[gdm@first-desktop ~]$ export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CIylRIX6Qz,guid=17e852f3d2ebc593113ace52000007d5
[gdm@first-desktop ~]$ export DBUS_SESSION_BUS_PID=12403
[gdm@first-desktop ~]$ ps aux | grep dconf
gdm      12518  0.0  0.0   8164   968 pts/0    S+   21:22   0:00 grep dconf
[gdm@first-desktop ~]$ /usr/lib/dconf/dconf-service &
[1] 12540
[gdm@first-desktop ~]$ GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri
'file:///var/lib/gdm/.cache/gnome-control-center/backgrounds/413e48595eeacc43c375b9cb3b501557f13766f0c6b812c1402a1e5c9ff910d1'
[gdm@first-desktop ~]$ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/archlinux/wallpaper/archlinux-arrival.jpg"
[gdm@first-desktop ~]$ exit
logout
[root@first-desktop ~]# exit
logout
$

really does change the background of the gdm login window, though it's also possible to

sudo cp -t /usr/share/gdm/autostart/LoginWindow/ /usr/share/applications/gnome-control-center.desktop /usr/share/applications/dconf-editor.desktop

then logout, make tweaks, log back in and

sudo rm /usr/share/gdm/autostart/LoginWindow/gnome-control-center.desktop /usr/share/gdm/autostart/LoginWindow/dconf-editor.desktop

Last edited by azleifel (2011-05-04 20:42:38)

Offline

#10 2011-05-04 20:44:53

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

@youjh really dude. is changing the login background in gdm.

the login greeter is a full desktop session running as gdm user. Is using the exactly the same configuration schemas as in a regular gnome session


Give what you have. To someone, it may be better than you dare to think.

Offline

#11 2011-05-04 20:48:06

youjh
Member
From: Cincinnati
Registered: 2009-12-07
Posts: 50

Re: Gnome 3 -> Change login background

Yeah, I just figured it out. It wasn't apparent to me that I had to mess with the dbus stuff first.

That could be a lot clearer in the wiki. ;-)

Thanks, gentlemen.


Code can be clean, fast, or object oriented. Pick two.

Offline

#12 2011-05-04 20:50:53

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

here is something very cool and nicer than those hacks.

https://live.gnome.org/dconf/SystemAdminstrators

you can create custom profiles for dconf settings in a plain text file.

Maybe somebody wants to play with it and add it to the wiki


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2011-05-04 20:51:14

youjh
Member
From: Cincinnati
Registered: 2009-12-07
Posts: 50

Re: Gnome 3 -> Change login background

Well, wait, how come the ctrl-L screen lock didn't change with the login screen?


Code can be clean, fast, or object oriented. Pick two.

Offline

#14 2011-05-05 12:25:29

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: Gnome 3 -> Change login background

Yes I noticed this too. The Lock-Screen has still the background provided by the Adwaita-theme. I don't know how to change this (changing the path in /usr/share/gnome-background-properties/adwaita.xml has no effect) but you can do:

$ sudo cp /usr/share/themes/Adwaita/backgrounds/stripes.jpg /usr/share/themes/Adwaita/backgrounds/stripes.jpg.bak
$ sudo rm /usr/share/themes/Adwaita/backgrounds/stripes.jpg
$ sudo ln -s [PATH_TO_A_BACKGROUNDIMAGE_OF_YOUR_CHOICE] /usr/share/themes/Adwaita/backgrounds/stripes.jpg

Login and -out again and the background of the lockscreen is changed too.

Hope to see a cleaner solution for this soon..

Offline

#15 2011-05-05 12:31:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

youjh wrote:

Well, wait, how come the ctrl-L screen lock didn't change with the login screen?

that in my opinion is a bug and should be reported. i see that it tries to load the user settings but the event that listens for changes is commented out.

still you should report it


Give what you have. To someone, it may be better than you dare to think.

Offline

#16 2011-05-06 10:52:36

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: Gnome 3 -> Change login background

It doesn't work for me! When I try to start dconf-service I get this failure message!

http://imageshack.us/photo/my-images/54 … oto2u.png/

Last edited by gunjah292 (2011-05-06 10:54:23)


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#17 2011-05-06 11:09:15

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

@gunjah292 you are not supposed to copy/paste the commands from wiki. for example your exports variables are wrong.


Give what you have. To someone, it may be better than you dare to think.

Offline

#18 2011-05-06 11:27:23

gunjah292
Member
From: Hamburg
Registered: 2011-05-05
Posts: 186

Re: Gnome 3 -> Change login background

I see...


KDE Plasma, ThinkPad X380 Yoga, Intel Core i7-8550U, Intel UHD Graphics 620, 512GB PCIe-NVMe SSD (OPAL 2.0), 16GB PC4-19200 (2400 MHz)

Offline

#19 2011-05-06 20:29:06

mreschke
Member
Registered: 2009-09-17
Posts: 19

Re: Gnome 3 -> Change login background

Here is a quick script of the above code, save it and run as root, example:

Save to /usr/local/bin/set_gdm_background
Then run it with the background you want

sudo /usr/local/bin/set_gdm_background /usr/share/backgrounds/thisone.jpg

set_gdm_background

#!/bin/bash

#Set Gnome3 GDM background
#mReschke 2011-05-06

echo $1 > /tmp/gdm_background
su - gdm -s /bin/bash --command='
    img=`cat /tmp/gdm_background`;
    for line in `dbus-launch`; do export "$line"; done;
    /usr/lib/dconf/dconf-service &
    echo "Current GDM Background:";
    GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri;    
    echo;echo "Setting new GDM Background to:";echo $img;
    GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri "file://$img";
    exit' 2> /dev/null
rm -rf /tmp/gdm_background
echo "Done"

Last edited by mreschke (2011-05-07 19:55:08)


/mReschke

Offline

#20 2011-05-06 20:30:28

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

@mreschke look at post 12. easier way


Give what you have. To someone, it may be better than you dare to think.

Offline

#21 2011-05-06 20:38:11

mreschke
Member
Registered: 2009-09-17
Posts: 19

Re: Gnome 3 -> Change login background

@wonder, link is bad, but yes dconf-editor is easy, see http://live.gnome.org/dconf

Last edited by mreschke (2011-05-07 03:26:55)


/mReschke

Offline

#22 2011-05-06 21:50:45

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 218

Re: Gnome 3 -> Change login background

azleifel wrote:

The wiki procedure, e.g. really does change the background of the gdm login window, though it's also possible to

sudo cp -t /usr/share/gdm/autostart/LoginWindow/ /usr/share/applications/gnome-control-center.desktop /usr/share/applications/dconf-editor.desktop

then logout, make tweaks, log back in and

sudo rm /usr/share/gdm/autostart/LoginWindow/gnome-control-center.desktop /usr/share/gdm/autostart/LoginWindow/dconf-editor.desktop

The Wiki did not work for me
This did and simple to do
thank you


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

#23 2011-05-28 15:42:26

jijijaco
Member
Registered: 2011-04-20
Posts: 14

Re: Gnome 3 -> Change login background

This procedure worked for me :
http://www.tootoogo.org/wordpress/?p=647

Would be good to integrate it into wiki.

Offline

#24 2011-05-28 16:05:06

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Gnome 3 -> Change login background

@jijijaco that is a copy/paste from our wiki


Give what you have. To someone, it may be better than you dare to think.

Offline

#25 2011-05-30 05:03:30

wetpaste
Member
Registered: 2011-02-14
Posts: 4

Re: Gnome 3 -> Change login background

Thank you.... after about an hour of googling and trying about 10 different things and none of them working whatsoever and reading the wiki page here https://wiki.archlinux.org/index.php/GDM#Configuration (which neither method shown worked for me either) I finally found this thread. this is so incredibly annoying and hackish it really pisses me off, whatever happened to editing a simple /etc/gdm-custom.conf file with something like background="/path/to/file" ??? That's how it used to be in the old gdm(which looked better too and had better skinning support)! and now I have to deal with this stupid convoluted sudo gdm dconf gsettings shit just to change a simple fucking theme. God damn it.


EDIT: lol, okay, the other solution that does work is to copy gconf-editor.desktop into /usr/share/gdm/autostart/loginwindow and just edit it from there, but that still seems slightly annoying and hackish. I guess gnome devs must have thought this wasn't a priority to have user friendly gdm settings and that it was basically the distro's job to brand gdm and make it look pretty. Unfortunately some distros have horrible taste in background textures. *cough* arch *cough*

Last edited by wetpaste (2011-05-30 05:25:40)

Offline

Board footer

Powered by FluxBB