Applet not showing icons on taskbar for 'Cloudy' weather condition

Bug #1193541 reported by Ross Ashley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Medium
Joshua Tasker

Bug Description

indicator-weather:
  Installed: 13.05.29+unstable+r338~raring1
  Candidate: 13.05.29+unstable+r338~raring1
  Version table:
 *** 13.05.29+unstable+r338~raring1 0
        500 http://ppa.launchpad.net/weather-indicator-team/unstable/ubuntu/ raring/main i386 Packages
        100 /var/lib/dpkg/status

and the log is attached.

Revision history for this message
Ross Ashley (brashley46) wrote :
Revision history for this message
Ross Ashley (brashley46) wrote :

Not true for all icons ... only happening at night.

Revision history for this message
Ross Ashley (brashley46) wrote :

Okay, the nighttime-cloudy icon is missing, is what it is. Where do I go to put it in?

Revision history for this message
Joshua Tasker (jtasker) wrote :

What theme are you using? What is the output of running the following command in a terminal:

gsettings get org.gnome.desktop.interface icon-theme

Revision history for this message
Ross Ashley (brashley46) wrote :

Thanks, Joshua; I get

gsettings get org.gnome.desktop.interface icon-theme
'gnome'

so I presume I'm running the gnome theme. The OS is Xubuntu, so I'm not running a full gnome system, if that makes any difference...

Revision history for this message
Joshua Tasker (jtasker) wrote :

The gnome icon theme is missing icons for the "Cloudy" condition.

Check if you have the full gnome icon theme installed. What is the output of this command?

dpkg -s gnome-icon-theme-full | grep Status

Merely installing that package won't solve it, however. What do you get when you run the following commands in a terminal?

ls /usr/share/icons/gnome/22x22/status/weather-* | grep -v 0

ls -l /usr/share/icons/gnome/22x22/status/weather-* | grep \>

Changed in weather-indicator:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Joshua Tasker (jtasker)
milestone: none → 13.06.01
summary: - Applet not showing icon on taskbar
+ Applet not showing icons on taskbar for 'Cloudy' weather condition
Revision history for this message
Ross Ashley (brashley46) wrote :

brashley46@rossdesktop2:~$ dpkg -s gnome-icon-theme-full | grep Status
Status: install ok installed
brashley46@rossdesktop2:~$ ls /usr/share/icons/gnome/22x22/status/weather-* | grep -v 0
ls: cannot access /usr/share/icons/gnome/22x22/status/weather-clouds-night.png: Too many levels of symbolic links
/usr/share/icons/gnome/22x22/status/weather-clear-night.png
/usr/share/icons/gnome/22x22/status/weather-clear.png
/usr/share/icons/gnome/22x22/status/weather-clouds.png
/usr/share/icons/gnome/22x22/status/weather-few-clouds-night.png
/usr/share/icons/gnome/22x22/status/weather-few-clouds.png
/usr/share/icons/gnome/22x22/status/weather-fog.png
/usr/share/icons/gnome/22x22/status/weather-overcast.png
/usr/share/icons/gnome/22x22/status/weather-severe-alert.png
/usr/share/icons/gnome/22x22/status/weather-showers.png
/usr/share/icons/gnome/22x22/status/weather-showers-scattered.png
/usr/share/icons/gnome/22x22/status/weather-snow.png
/usr/share/icons/gnome/22x22/status/weather-storm.png
brashley46@rossdesktop2:~$ ls -l /usr/share/icons/gnome/22x22/status/weather-* | grep \>
lrwxrwxrwx 1 root root 60 Mar 12 2012 /usr/share/icons/gnome/22x22/status/weather-clouds-night.png -> /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
lrwxrwxrwx 1 root root 58 Mar 12 2012 /usr/share/icons/gnome/22x22/status/weather-clouds.png -> /usr/share/icons/gnome/22x22/status/weather-few-clouds.png
brashley46@rossdesktop2:~$

Revision history for this message
Ross Ashley (brashley46) wrote :

So on weather-clouds-night.png we get "too many levels of symbolic links". Hmmmm.

Revision history for this message
Ross Ashley (brashley46) wrote :

Investigating that folder I find a symbolic link rather than an image. All the other statuses have images, only weather-clouds-night has a symbolic link. And "properties" tells me that it is a broken link. Now what?

Revision history for this message
Joshua Tasker (jtasker) wrote :

You can manually fix that broken link yourself, just run these commands in a terminal:

sudo ln -sf weather-few-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
gtk-update-icon-cache-3.0 -q /usr/share/icons/gnome
gtk-update-icon-cache -q /usr/share/icons/gnome

Then log out and back in, and the icon should display.

Revision history for this message
Joshua Tasker (jtasker) wrote :

Just to clarify, that's only three commands; the first line got wrapped by Launchpad.

This happened because of an error in one of the install scripts; the fix will be in the next release.

Revision history for this message
Ross Ashley (brashley46) wrote :

Okay, I ran
brashley46@rossdesktop2:~$ sudo ln -sf weather-few-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
[sudo] password for brashley46:
ln: accessing ‘/usr/share/icons/gnome/22x22/status/weather-clouds-night.png’: Too many levels of symbolic links
brashley46@rossdesktop2:~$ gtk-update-icon-cache-3.0 -q /usr/share/icons/gnome
brashley46@rossdesktop2:~$ gtk-update-icon-cache -q /usr/share/icons/gnome
brashley46@rossdesktop2:~$

and now I get

brashley46@rossdesktop2:~$ ls /usr/share/icons/gnome/22x22/status/weather-* | grep -v 0
ls: cannot access /usr/share/icons/gnome/22x22/status/weather-clouds-night.png: Too many levels of symbolic links
/usr/share/icons/gnome/22x22/status/weather-clear-night.png
/usr/share/icons/gnome/22x22/status/weather-clear.png
/usr/share/icons/gnome/22x22/status/weather-clouds.png
/usr/share/icons/gnome/22x22/status/weather-few-clouds-night.png
/usr/share/icons/gnome/22x22/status/weather-few-clouds.png
/usr/share/icons/gnome/22x22/status/weather-fog.png
/usr/share/icons/gnome/22x22/status/weather-overcast.png
/usr/share/icons/gnome/22x22/status/weather-severe-alert.png
/usr/share/icons/gnome/22x22/status/weather-showers.png
/usr/share/icons/gnome/22x22/status/weather-showers-scattered.png
/usr/share/icons/gnome/22x22/status/weather-snow.png
/usr/share/icons/gnome/22x22/status/weather-storm.png
brashley46@rossdesktop2:~$ ls -l /usr/share/icons/gnome/22x22/status/weather-* | grep \>
lrwxrwxrwx 1 root root 60 Mar 12 2012 /usr/share/icons/gnome/22x22/status/weather-clouds-night.png -> /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
lrwxrwxrwx 1 root root 58 Mar 12 2012 /usr/share/icons/gnome/22x22/status/weather-clouds.png -> /usr/share/icons/gnome/22x22/status/weather-few-clouds.png
brashley46@rossdesktop2:~$

weather-indicator updated this morning, to 13.06.01 'rainy 7' ... still have the broken link. Signed out of and back into weather-indicator like you said. Or did you mean reboot the machine?

Revision history for this message
Ross Ashley (brashley46) wrote :

::sigh:: when is the next release?

Joshua Tasker (jtasker)
Changed in weather-indicator:
status: Triaged → Fix Committed
Revision history for this message
Joshua Tasker (jtasker) wrote :

The postinst script had the same problem that the command I gave you did -- it didn't handle removing symlinks that link to themselves (the message about "too many levels of recursion")

These commands will correctly remove/recreate the symlinks. Let me know if they don't.

        rm -f /usr/share/icons/gnome/22x22/status/weather-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
        ln -s weather-few-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
        ln -s weather-few-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png

The next release will come when the bugs marked 'Fix Committed' on this page: https://launchpad.net/weather-indicator/+milestone/13.06.01 are verified as fixed by users other than myself.

Revision history for this message
Ross Ashley (brashley46) wrote :

Once again, I ran
brashley46@rossdesktop2:~$ sudo rm -f /usr/share/icons/gnome/22x22/status/weather-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
[sudo] password for brashley46:
brashley46@rossdesktop2:~$ sudo ln -s weather-few-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
brashley46@rossdesktop2:~$ sudo ln -s weather-few-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png
ln: accessing ‘/usr/share/icons/gnome/22x22/status/weather-clouds-night.png’: Too many levels of symbolic links
brashley46@rossdesktop2:~$

stopped weather-indicator, restarted it, and no change. weaather-clouds-night.png is still a symbolic link to nothing, rather than an actual .png file.

Revision history for this message
Joshua Tasker (jtasker) wrote :

Sorry, I made a typo, so the bad weather-clouds-night.png link didn't get removed. That first command (to remove the bad links) should have been:

sudo rm -f /usr/share/icons/gnome/22x22/status/weather-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png

(or you can break it into two commands):
sudo rm -f /usr/share/icons/gnome/22x22/status/weather-clouds.png
sudo rm -f /usr/share/icons/gnome/22x22/status/weather-clouds-night.png

then run the ln commands again to create the good links:
ln -s weather-few-clouds.png /usr/share/icons/gnome/22x22/status/weather-clouds.png
ln -s weather-few-clouds-night.png /usr/share/icons/gnome/22x22/status/weather-clouds-night.png

Revision history for this message
Ross Ashley (brashley46) wrote :

Okay, thanks, that seems to have done it.

Revision history for this message
Ross Ashley (brashley46) wrote :

Now all the mostly-cloudy-night icons have disappeared! Is there no end to this? should I file a fresh bug?

Revision history for this message
Ross Ashley (brashley46) wrote :

Actually there are no icons for mostly-cloudy, day or night.

Joshua Tasker (jtasker)
Changed in weather-indicator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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