[Xfce-bugs] [Bug 3614] New: No icon for launchers that have a period (dot, '.') in their icon's base name

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun Oct 21 11:49:14 CEST 2007


DO NOT REPLY TO THIS EMAIL.  Also, do not reply via email to the person
whose email is mentioned below.  To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=3614

           Summary: No icon for launchers that have a period (dot, '.') in
                    their icon's base name
           Product: Xfce
           Version: 4.4.1
          Platform: PC (x86)
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: general
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: sireebob at gmail.com


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8)
Gecko/20071008 Firefox/2.0.0.8
Build Identifier: 

This problem affects thunar (0.8.0), libxfcegui4 (4.4.1), possibly xfdesktop4
(4.4.1) and others.

If a launcher (.desktop file) contains an 'Icon=' line specifying an icon with
a period (dot, '.') in the base name, the icon will not be loaded for the
launcher. For example, the icon file '0e5b_winamp.0.xpm' would be specified in
the .desktop file like so:
Icon=0e5b_winamp.0

This icon would, however, not be loaded, while it loads fine in GNOME.
This is most noticeable with the icons generated by Wine, which have names
resembling the one given in the example above.

This happens because the affected software assumes that '.0' is a file
extension and strips it from the name before looking for an icon with that base
name. So in the example, the software would be looking for an icon named
'0e5b_winamp.xpm', or .png, etc., rather than '0e5b_winamp.0.xpm'.

Reproducible: Always

Steps to Reproduce:
1. Copy an icon file to one of your icon folders, giving it the name
'test.of.it.xpm' or '.png', or whatever format the icon is in
2. Create a launcher on the desktop with any command, xfce4-terminal for
instance, and for the icon, locate test.of.periods.xpm, or edit the .desktop
file so that the Icon line looks like this: Icon=test.of.it
3. Observe xfce's behavior

Actual Results:  
No icon is visible for this launcher on the desktop or in thuna.

Expected Results:  
It should have checked for the icon with the file name as given *first*. So,
before stripping the possible-extension '.it', the icon should be looked for
as-is. Then, if it is not found, the possible-extension '.it' should be
stripped. This will allow correct compatibility with icon paths that contain an
extension and those that don't.

Xubuntu 7.10, latest Ubuntu packages; moved from GNOME


-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list