You are not logged in.

#1 2009-07-12 06:24:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

[SOLVED] Get List of 'Registered' Wallpaper (Gnome)

Does anyone know how to get a list of 'registered' wallpapers for Gnome (ie, the wallpapers that appear in the dialog when you open the Change Wallpaper dialog).

My wallpapers are all over the place, and I want to implement a wallpaper rotator, but it seems absolutely ridiculous that I should have to either store all my wallpaper in one directory, or hard code a list of wallpapers in to the script.

Last edited by fukawi2 (2009-07-14 23:21:04)

Offline

#2 2009-07-12 08:05:24

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

Maybe you will more, and quicker answer for it, in the forum of http://gnome-look.org/.
My advice post this there too smile

Offline

#3 2009-07-14 05:19:58

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

Hmmm, not much love for me here so I'll give that a shot. Thanks djszapi smile

Offline

#4 2009-07-14 12:53:17

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

fukawi2 wrote:

Does anyone know how to get a list of 'registered' wallpapers for Gnome (ie, the wallpapers that appear in the dialog when you open the Change Wallpaper dialog).

My wallpapers are all over the place, and I want to implement a wallpaper rotator, but it seems absolutely ridiculous that I should have to either store all my wallpaper in one directory, or hard code a list of wallpapers in to the script.

The "registered" wallpapers are kept in /usr/share/pixmaps/backgrounds/gnome and the (kind of-sort of) lists are in /usr/share/gnome-background-properties in the form of three xml files.


Smarter than a speeding bullet
My Goodreads profile

Offline

#5 2009-07-14 13:22:13

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

its in ~/.gnome2/backgrounds.xml

im interested in your script, i tried to attempt this but im too much of a noob to script out the xml parser.

Offline

#6 2009-07-14 22:35:02

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

eldragon wrote:

its in ~/.gnome2/backgrounds.xml

im interested in your script, i tried to attempt this but im too much of a noob to script out the xml parser.

Aha! That's what I was after, awesome... I'll post back when I'm done smile

Offline

#7 2009-07-14 23:20:51

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

I hate trying to reinvent the wheel:
http://pypi.python.org/pypi/freshwall/1.1.2

Found that in the process of trying to hack up a Pythion script to do exactly that.

OT: I *hate* Python now.

Offline

#8 2009-07-14 23:37:51

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] Get List of 'Registered' Wallpaper (Gnome)

Added to AUR:
http://aur.archlinux.org/packages.php?ID=28302

Last edited by fukawi2 (2009-07-14 23:38:00)

Offline

Board footer

Powered by FluxBB