Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Changing the Gnome Lock Screen background
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Katherine1
n00b
n00b


Joined: 06 Oct 2010
Posts: 26

PostPosted: Thu Mar 03, 2011 4:29 am    Post subject: [Solved] Changing the Gnome Lock Screen background Reply with quote

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
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1896
Location: 127.0.0.1

PostPosted: Thu Mar 03, 2011 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Katherine1
n00b
n00b


Joined: 06 Oct 2010
Posts: 26

PostPosted: Thu Mar 03, 2011 2:37 pm    Post subject: Reply with quote

No, sorry. The lock screen background remains that image. I think that's the setting for the default desktop background.
Back to top
View user's profile Send private message
Katherine1
n00b
n00b


Joined: 06 Oct 2010
Posts: 26

PostPosted: Fri Mar 04, 2011 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1896
Location: 127.0.0.1

PostPosted: Fri Mar 04, 2011 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Fri Mar 04, 2011 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1896
Location: 127.0.0.1

PostPosted: Fri Mar 04, 2011 9:17 pm    Post subject: Reply with quote

No, because gconf-editor can not modify schema values.
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Sat Mar 05, 2011 9:09 am    Post subject: Reply with quote

OK, then forget I mentioned it :oops:
Back to top
View user's profile Send private message
Katherine1
n00b
n00b


Joined: 06 Oct 2010
Posts: 26

PostPosted: Sat Mar 05, 2011 3:42 pm    Post subject: Reply with quote

That worked. I now have a custom lock screen background. Thank you.
Back to top
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Sat Feb 18, 2012 1:31 pm    Post subject: Reply with quote

I had to replace: /usr/share/pixmaps/backgrounds/gnome/gentoo/gentoo-emergence.png Gconf didn't work...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum