Variety doesn't change wallpaper on XFCE 4.10 and later (e.g. xubuntu 14.04)

Bug #1311345 reported by Luis Ariel Vega
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Variety
Fix Released
Critical
Peter Levi

Bug Description

1. variety version: 0.4.17
2. desktop: XFCE 4.10
3. OS: xubuntu 14.04
----------------------------------------------------------------------------------------------------------
hi,

i'm using this app a shoort time ago and i like it :D

i just install xubuntu 14.04 i386 in my pc and install variety using the instruccion to add the ppa from launchpad, but when i start variety it can't change the wallpaper, i search for a solution and i found this:

http://askubuntu.com/questions/414422/command-to-change-the-wallpaper-in-xubuntu

i don't know why?, but i have xfce on Linux Mint Debian and variety works great, so my solution to this was to modify the script "~/.config/variety/scripts/set_wallpaper" and put this:

for i in $(xfconf-query -c xfce4-desktop -p /backdrop -l|egrep -e "screen.*/monitor.*image-path$" -e "screen.*/monitor.*/last-image$"); do
    xfconf-query -c xfce4-desktop -p $i -n -t string -s "" 2> /dev/null
    xfconf-query -c xfce4-desktop -p $i -n -t string -s "$WP" 2> /dev/null
    xfconf-query -c xfce4-desktop -p $i -s "" 2> /dev/null
    xfconf-query -c xfce4-desktop -p $i -s "$WP" 2> /dev/null
done

and with this variety is working!

thank you for write variety :'D

P.D.: sorry for my english, i'm from Bolivia y no estoy acostumbrado a escribir en ingles :v

Peter Levi (peterlevi)
Changed in variety:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Peter Levi (peterlevi)
description: updated
description: updated
Revision history for this message
Roony Alvarez (legion1978) wrote :

hi.
yes this makes it work.
it apparently tells xfce where to set the wallpaper from, but it overrides the custom folders set in variety. deletes them from config, leaving xfce set to the last folder used (set in variety)
if xfce desktop setting is set to "none" then variety does not work...
=/

Revision history for this message
Justin Sovine (justinsovine) wrote :

I'd also like to add that the clock and everything else isn't working on a fresh xubuntu install. If anyone has any suggestions for that I'd appreciate it! Waiting for a package update otherwise (using the PPA)

Revision history for this message
Peter Levi (peterlevi) wrote :

The suggested change in the bug description works, I have tested it myself.

Revision history for this message
Roony Alvarez (legion1978) wrote :

mmm ok i tested again.
apparently *something* is resetting all configs to default after i open the preferences window.
this is what i get

IOError: cannot identify image file
No existe el esquema «com.canonical.unity-greeter»
ERROR: 2014-04-25 07:45:18,678: download_thread() 'Could not download wallpaper:'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/variety/VarietyWindow.py", line 891, in download_thread
    self.download_one_from(downloader)
  File "/usr/lib/python2.7/site-packages/variety/VarietyWindow.py", line 914, in download_one_from
    file = downloader.download_one()
  File "/usr/lib/python2.7/site-packages/variety/WallpapersNetDownloader.py", line 71, in download_one
    self.fill_queue()
  File "/usr/lib/python2.7/site-packages/variety/WallpapersNetDownloader.py", line 98, in fill_queue
    s = Util.html_soup(self.location)
  File "/usr/lib/python2.7/site-packages/variety/Util.py", line 292, in html_soup
    return bs4.BeautifulSoup(Util.urlopen(url, data).read())
  File "/usr/lib/python2.7/site-packages/variety/Util.py", line 280, in urlopen
    return urllib2.urlopen(request, data=data, timeout=20)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

ill try again

Revision history for this message
mike mayhew (mtmayhew) wrote :

the only way i seem to get it to work is if i set the system wallpaper changer to change when variety changes the image and time. and that is not right. in unity it works great but in xubuntu it doesn't

Revision history for this message
Roony Alvarez (legion1978) wrote :

after further testing it did work.
i had to reset all configuration though. maybe some folder permission or whatever.
it seems to flick during transition (hard wp change) but its no big deal.
if theres no wp set in xfce it will not work.

Peter Levi (peterlevi)
summary: - variety doesn't change wallpaper on xubuntu 14.04
+ Variety doesn't change wallpaper on XFCE 4.10 and later (e.g. xubuntu
+ 14.04)
Peter Levi (peterlevi)
Changed in variety:
status: Confirmed → Fix Released
Revision history for this message
Peter Levi (peterlevi) wrote :

Please help confirm the fix works OK:

1. Rename or delete your current ~/.config/variety/scripts folder (to ensure you will be using the latest default scripts)
2. Install the attached version
3. Test if it works ok on your XFCE.
4. Report back the results, along with the XFCE version you ran it on.

If you can test on several different XFCE versions (or even other DEs), please do so.

Thanks.

Changed in variety:
status: Fix Released → Fix Committed
Revision history for this message
Roony Alvarez (legion1978) wrote : Re: [Bug 1311345] Re: Variety doesn't change wallpaper on XFCE 4.10 and later (e.g. xubuntu 14.04)

oops. im on manjaro =)

El 30/04/14 03:27, Peter Levi escribió:
> Please help confirm the fix works OK:
>
> 1. Rename or delete your current ~/.config/variety/scripts folder (to ensure you will be using the latest default scripts)
> 2. Install the attached version
> 3. Test if it works ok on your XFCE.
> 4. Report back the results, along with the XFCE version you ran it on.
>
> If you can test on several different XFCE versions (or even other DEs),
> please do so.
>
> Thanks.
>
> ** Attachment added: "variety_0.4.17ubuntu1_all.deb"
> https://bugs.launchpad.net/variety/+bug/1311345/+attachment/4101094/+files/variety_0.4.17ubuntu1_all.deb
>
> ** Changed in: variety
> Status: Fix Released => Fix Committed
>

--
rønin
317 2121 341
www.ronins.org <http://www.ronins.org>

Revision history for this message
Peter Levi (peterlevi) wrote :

Roony:

To run from trunk (where the fix is committed):
mkdir temp
cd temp
bzr branch lp:variety
cd variety
bin/variety -v

This assumes you already have all the dependencies installed (you should have them if you have run Variety in the past on that machine).
Remember to remove or rename ~/.config/variety/scripts before running, otherwise you will be testing your own fix, not the committed one.

Revision history for this message
Roony Alvarez (legion1978) wrote :

=(

$ bin/variety -v
Traceback (most recent call last):
   File "bin/variety", line 43, in <module>
     import variety
   File "/home/legion/temp/variety/variety/__init__.py", line 64
     print _("Terminating signal received, quitting...")
           ^
SyntaxError: invalid syntax

El 30/04/14 07:47, Peter Levi escribió:
> Roony:
>
> To run from trunk (where the fix is committed):
> mkdir temp
> cd temp
> bzr branch lp:variety
> cd variety
> bin/variety -v
>
> This assumes you already have all the dependencies installed (you should have them if you have run Variety in the past on that machine).
> Remember to remove or rename ~/.config/variety/scripts before running, otherwise you will be testing your own fix, not the committed one.
>

--
rønin
317 2121 341
www.ronins.org <http://www.ronins.org>

Revision history for this message
Randy Orrison (r.orrison) wrote :

The .deb from #7 is working for me on Xubuntu 14.04 which I think is xfce 4.11. Thanks!

Revision history for this message
James Hudson (james-hudson9) wrote :

I can confirm that variety 4.17 works for me on xubuntu 14.04 running xfce 4.10

Peter Levi (peterlevi)
Changed in variety:
status: Fix Committed → Fix Released
Revision history for this message
GridCube (gridcube) wrote :

wooo :D last version works!!

Revision history for this message
Simas (ab-simas) wrote :

XFCE 4.10 on xubuntu 14.04 works when I remove current variety version and install the one from #7

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.