View previous topic :: View next topic |
Author |
Message |
Katherine1 n00b
Joined: 06 Oct 2010 Posts: 26
|
Posted: Thu Mar 03, 2011 4:29 am Post subject: [Solved] Changing the Gnome Lock Screen background |
|
|
By default, when gnome is installed, the lock screen has a background with the Gentoo logo. While that's all well and good, I would like to change the background at the lock screen. Everything that I've found online says to overwrite the image at /usr/share/pixmaps/backgrounds/gnome/background-default.jpg This isn't the image on the lockscreen, though. This image looks like Gnome's default desktop background.
What I would like to know is how to change that lock screen background.
Last edited by Katherine1 on Sat Mar 05, 2011 3:44 pm; edited 2 times in total |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1896 Location: 127.0.0.1
|
Posted: Thu Mar 03, 2011 7:43 am Post subject: |
|
|
From /etc/gconf/schemas/desktop_gnome_background.schemas :
Quote: |
<key>/schemas/desktop/gnome/background/picture_filename</key>
<applyto>/desktop/gnome/background/picture_filename</applyto>
<owner>gnome</owner>
<type>string</type>
<default>/usr/share/pixmaps/backgrounds/gnome/gentoo/gentoo-emergence.png</default>
<locale name="C">
<short>Picture Filename</short>
<long>File to use for the background image.</long>
</locale>
|
You should try to modify this value in that file. Maybe you can create your own schema file in your home to override the default system value ? I don't know... |
|
Back to top |
|
|
Katherine1 n00b
Joined: 06 Oct 2010 Posts: 26
|
Posted: Thu Mar 03, 2011 2:37 pm Post subject: |
|
|
No, sorry. The lock screen background remains that image. I think that's the setting for the default desktop background. |
|
Back to top |
|
|
Katherine1 n00b
Joined: 06 Oct 2010 Posts: 26
|
Posted: Fri Mar 04, 2011 6:10 pm Post subject: |
|
|
Does anyone know how to change the lock screen's background? I know it can be set since it is defaulting the the gentoo emergence image. |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1896 Location: 127.0.0.1
|
Posted: Fri Mar 04, 2011 7:48 pm Post subject: |
|
|
This is this value. The problem you currently have is that all these schemas files are compiled into xml files by the gnome2-utils eclass during each gnome package emerge.
Quote: |
$ grep emergence /etc/gconf/gconf.xml.defaults/*
gconf.xml.defaults/%gconf-tree.xml: <stringvalue>/usr/share/pixmaps/backgrounds/gnome/gentoo/gentoo-emergence.png</stringvalue>
|
So if you want to modify the backgound image you must edit this generated file, and logout/login, but any change will probably be overriden during next update of libgnome.
Maybe you can read the gnome2-utils eclass to learn how to update cleanly those files, using gconftool-2.
Edit: or another (simple) way to modify the image is to create your own patch for libgnome on a local overlay :
Code: |
$ cat /portage/trees/gentoo/gnome-base/libgnome/files/libgnome-2.26.0-branding.patch
diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN libgnome-2.26.0.orig/schemas/desktop_gnome_background.schemas.in.in libgnome-2.26.0/schemas/desktop_gnome_background.schemas.in.in
--- libgnome-2.26.0.orig/schemas/desktop_gnome_background.schemas.in.in 2009-03-17 10:42:05.000000000 -0400
+++ libgnome-2.26.0/schemas/desktop_gnome_background.schemas.in.in 2009-04-24 14:57:59.000000000 -0400
@@ -29,7 +29,7 @@
<applyto>/desktop/gnome/background/picture_filename</applyto>
<owner>gnome</owner>
<type>string</type>
- <default>@datadir@/pixmaps/backgrounds/gnome/background-default.jpg</default>
+ <default>@datadir@/pixmaps/backgrounds/gnome/gentoo/gentoo-emergence.png</default>
<locale name="C">
<short>Picture Filename</short>
<long>File to use for the background image.</long>
|
|
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Fri Mar 04, 2011 8:50 pm Post subject: |
|
|
I'm not on Linux atm, but isn't this as simple as opening gconf-editor, navigating to /schemas/desktop/gnome/background, and changing 'picture_filename' to the path of the image you want? |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1896 Location: 127.0.0.1
|
Posted: Fri Mar 04, 2011 9:17 pm Post subject: |
|
|
No, because gconf-editor can not modify schema values. |
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Sat Mar 05, 2011 9:09 am Post subject: |
|
|
OK, then forget I mentioned it |
|
Back to top |
|
|
Katherine1 n00b
Joined: 06 Oct 2010 Posts: 26
|
Posted: Sat Mar 05, 2011 3:42 pm Post subject: |
|
|
That worked. I now have a custom lock screen background. Thank you. |
|
Back to top |
|
|
katfish Tux's lil' helper
Joined: 14 Nov 2011 Posts: 147
|
Posted: Sat Feb 18, 2012 1:31 pm Post subject: |
|
|
I had to replace: /usr/share/pixmaps/backgrounds/gnome/gentoo/gentoo-emergence.png Gconf didn't work... |
|
Back to top |
|
|
|