Bug 444806

Summary: no icons in yast2
Product: [openSUSE] openSUSE 11.1 Reporter: Harald Koenig <koenig>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P2 - High    
Version: Beta 5   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Harald Koenig 2008-11-13 20:31:56 UTC
after update from beta4 to beta5 via DVD yast2 doesn't display any icons anymore (worked fine in beta4).   get the folling error message:

y2controlcenter: No icon /usr/share/YaST2/theme/current/icons/32x32/apps/yast.png
Comment 1 Robert Vojcik 2008-11-14 02:46:08 UTC
Hello, 

could you send yast2 logs and what GUI you use (kde, gnome) ? 
If you are in doubt follow:
http://en.opensuse.org/Bugs/YaST

Thanks
Comment 2 Harald Koenig 2008-11-14 13:10:24 UTC
Created attachment 252255 [details]
y2logs
Comment 3 Harald Koenig 2008-11-14 13:13:17 UTC
(In reply to comment #1 from Robert Vojcik)
> could you send yast2 logs and what GUI you use (kde, gnome) ? 

I'm using xfce4 -- which worked fine with beta4 before updating to beta5...
Comment 4 Stefan Hundhammer 2008-11-14 14:57:38 UTC
Typically, it's simply a missing or broken symlink in 
/usr/share/YaST2/theme/   :
    current -> openSUSE

(or whatever theme is installed). Can you check if there is such a link?

In rare cases, it might actually happen that no yast2-theme got installed. Please check with

    rpm -qa | grep yast2-theme
Comment 5 Harald Koenig 2008-11-14 15:37:46 UTC
(In reply to comment #4 from Stefan Hundhammer)
> Typically, it's simply a missing or broken symlink in 
> /usr/share/YaST2/theme/   :
>     current -> openSUSE
> 
> (or whatever theme is installed). Can you check if there is such a link?

gotcha!

harald udev > ll /usr/share/YaST2/theme/
total 4
lrwxrwxrwx  1 root root   16 Nov 13 14:53 current -> openSUSE-current
drwxr-xr-x 10 root root 4096 Nov 10 17:00 openSUSE
harald udev > 


> In rare cases, it might actually happen that no yast2-theme got installed.
> Please check with
> 
>     rpm -qa | grep yast2-theme

that's ok:

harald udev > rpm -qa | grep yast2-theme
yast2-theme-openSUSE-2.17.10-1.1
harald udev > rpm -V yast2-theme-openSUSE-2.17.10-1.1
harald udev > ll /usr/share/YaST2/theme/current 

Comment 6 Stefan Hundhammer 2008-11-14 15:52:25 UTC
Jiri, you did the last changes in yast2-theme with that symlink handling. What is happening here? Why does "current" point to "openSUSE-current" and no longer to "openSUSE"?
Comment 7 Stefan Hundhammer 2008-11-14 16:45:19 UTC
See also bug #445158
Comment 8 Jiri Srain 2008-11-19 08:01:09 UTC
'openSUSE-current' took over the role of 'current'; these two levels are because of introducing branding (bringing the 'current' symlink) while having possibilities to have multiple openSUSE themes.

I will have a look at the post-(un)installation scripts and ensure that even after upgrade the symlinks are kept.
Comment 9 Jiri Srain 2008-11-19 09:10:20 UTC
I compared the .spec-files between 11.0 and 11.1, there is slight difference. I'm gonna fix the openSUSE-current symlink handling to be the same as current in 11.0, this should fix the issue.
Comment 10 Jiri Srain 2008-11-19 09:36:00 UTC
Submitted to autobuild.