Wallpaper selection fails

Bug #560130 reported by wobblybob
88
This bug affects 18 people
Affects Status Importance Assigned to Milestone
GDM2Setup
Confirmed
Critical
Growlf

Bug Description

Running GDM2Setup 0.5.3 from your PPA, in Beta2 of Ubuntu Lucid Gnome, with all packages updated today 10/04/2010, when I select a new wallpaper nothing happens. Running the app from a Terminal I get the following traceback error messages about setting an adjustment with non-zero page size is deprecated.

GetTimedLogin: False
GetTimedLoginDelay: 30.0
Error: global name 'fTimedLoginDelay' is not defined
on_showloginscreen_radiobutton_toggled, value: True
SetAutoLogin, values: False None
SetTimedLogin: False None 30
on_banner_checkbutton_toggled, value: False
SetBannerEnable: False
GetWallpaper: /usr/share/backgrounds/warty-final-ubuntu.png
update_preview, WallpaperLocation: /usr/share/backgrounds/warty-final-ubuntu.png
GetWallpaper: /usr/share/backgrounds/warty-final-ubuntu.png
in on_wallpaperchooser_dlg_update_preview, WallpaperLocation: /usr/share/backgrounds/ThrowingStones.jpg
In on_open_wallpaperchooser, selected Wallpaper: /usr/share/backgrounds/ThrowingStones.jpg
SetWallpaper: /usr/share/backgrounds/ThrowingStones.jpg False

Traceback (most recent call last):
dm2setup.py:291: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  File "/usr/lib/pymodules/python2.6/gdm2/gdm2setup.py", line 196, in on_open_wallpaperchooser
    self.theme.SetWallpaper(WallpaperLocation, False)
  File "/usr/lib/pymodules/python2.6/gdm2/gdm2gconf.py", line 191, in SetWallpaper
    image.save(self.XSPLASH_IMAGE_LOCATION)
  File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1433, in save
    fp = __builtin__.open(fp, "wb")
IOError: [Errno 2] No such file or directory: u'/usr/share/images/xsplash/bg.jpg

Revision history for this message
wobblybob (martincooper9) wrote :

now solved this problem, my new Lucid install did not create the folder /usr/share/images/xsplash so I created an xsplash folder within /usr/share/images/ and the wallpaper selection now works!

Revision history for this message
Growlf (growlf) wrote :

I noticed this as well, there is even a comment in the code regarding this that I had put in previously. I am going to keep this as a "live" bug to remind us to fix this very soon. Checking for that directory existence seems to be needed, even though it SHOULD be there by default.

Changed in gdm2setup:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Growlf (growlf)
milestone: none → 0.5.0
Revision history for this message
Growlf (growlf) wrote :

Thank you for reporting this issue and for determining the cause as well. We will be attempting another bug fix release soon, and fix for this issue will be included.

Growlf (growlf)
Changed in gdm2setup:
importance: High → Critical
Revision history for this message
Growlf (growlf) wrote :

This is related to #536712 as well and is affecting some Linux Mint users dramatically. This needs to be resolved as soon as possible due to the level of impact that it can cause in some rare situations (two so far) where it seems to be related to reports of system lockouts.

Revision history for this message
zeromax (zeromax) wrote :

Hi !
I have exactly the same bug.
Unable to open another wallpaper !
I have th 0.5.3 version.
I just wait now the bug-fix ^^
date : 2010-05-02

Thx !

Revision history for this message
yanom (yanom) wrote :

Yep, I have the same problem

Revision history for this message
Pablo Catalina (xkill) wrote :

Same problem :(

$ LANG=C sudo gdm2setup
/usr/lib/pymodules/python2.6/gdm2/gdm2setup.py:291: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.builder.add_from_file(os.path.join(whereami, "gdm2setup.ui"))

** (ck-history:25382): WARNING **: Unable to parse session removed event: seat-id='Seat1' session-id='Session9' session-type='' session-x11-dis1280131605.757 type=SEAT_ADDED : seat-id='Seat1' seat-kind=0

GetTimedLogin: False
GetTimedLoginDelay: 30.0
Error: global name 'fTimedLoginDelay' is not defined
on_showloginscreen_radiobutton_toggled, value: True
SetAutoLogin, values: False None
SetTimedLogin: False None 30
on_banner_checkbutton_toggled, value: False
SetBannerEnable: False
GetWallpaper: /usr/share/backgrounds/warty-final-ubuntu.png
update_preview, WallpaperLocation: /usr/share/backgrounds/warty-final-ubuntu.png
GetWallpaper: /usr/share/backgrounds/warty-final-ubuntu.png
in on_wallpaperchooser_dlg_update_preview, WallpaperLocation: /usr/share/backgrounds/Fluffodome.jpg
in on_wallpaperchooser_dlg_update_preview, WallpaperLocation: /usr/share/backgrounds/Icystones2.jpg
in on_wallpaperchooser_dlg_update_preview, WallpaperLocation: /usr/share/backgrounds/FallDrops,AncientLight.jpg
in on_wallpaperchooser_dlg_update_preview, WallpaperLocation: /usr/share/backgrounds/Daisy.jpg
in on_wallpaperchooser_dlg_update_preview, WallpaperLocation: /usr/share/backgrounds/CurlsbyCandy.jpg
In on_open_wallpaperchooser, selected Wallpaper: /usr/share/backgrounds/CurlsbyCandy.jpg
SetWallpaper: /usr/share/backgrounds/CurlsbyCandy.jpg False
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/gdm2/gdm2setup.py", line 196, in on_open_wallpaperchooser
    self.theme.SetWallpaper(WallpaperLocation, False)
  File "/usr/lib/pymodules/python2.6/gdm2/gdm2gconf.py", line 191, in SetWallpaper
    image.save(self.XSPLASH_IMAGE_LOCATION)
  File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1433, in save
    fp = __builtin__.open(fp, "wb")
IOError: [Errno 2] No such file or directory: u'/usr/share/images/xsplash/bg.jpg'

Revision history for this message
MarkieB (ubunt-u-markbenjamin) wrote :

similarly; nice to see how to put it right though :-)

Revision history for this message
ingo (ingo-steiner) wrote :

I just posted my solution under Bug #536712. Here again:

Got version 0.5.3 here in Lucid and faced the same problem as described here: unable to change background image.

Solution was just to create the folder /usr/share/images/xsplash which did not exist after Installation here.

Remark: until that time I had to just copy the desired *.jpg to /usr/share/backgrounds/warty-final-ubuntu.png
Yes - that's correct put a *.jpg into a file named *.png.

So seems that Lucid takes the same image as dektop-background and gdm-splash, all located under /usr/share/backgrounds. The splash they have pinned by a dirty trick (save a JPEG with png suffix) to force uses to see the purple stuff.

After this workaround from me gdm2setup now points by default to /usr/share/images/xsplash instead to /usr/share/backgrounds before.

Hope this helps to solve the Lucid problems.

Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

Ingo, many thanks for the workaround, exactly what I needed. But it took me a lot of searching to find this advice and there must be many users who give up. I'm using version 0.5.3, but I see in #3 above another release was expected soon -- that was 5 months ago, am I missing the latest version?

Is something like
if not os.path.exists(XSPLASH_IMAGE_LOCATION): os.makedirs(XSPLASH_IMAGE_LOCATION)
needed before line 191 in gdm2gconf.py?

Growlf: Thanks for a /very/ nice app, it would be great to see this in Ubuntu by default, not a special install. Any way to get that to happen?

Revision history for this message
wobblybob (martincooper9) wrote :

Hi again,
I've just added this prog to Maverick using the Lucid ppa but still have the same issue which is solved by creating the folder /usr/share/images/xsplash It's about time this was fixed as many other users will not know how to fix it or looks for a solution and will simple de install it.

great App though

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.