Hard to find out which file used as icon

Bug #460941 reported by Shahar Or
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nautilus
Expired
Medium
nautilus (Ubuntu)
Triaged
Wishlist
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

Dear nautilus developers and users, BugSquad and all concerned,

I couldn't find as easy way to tell which file is being used as the icon for a file.

I think it should be clear to find this out.

Perhaps it should be that when the 'change icon' button is pressed in a file's properties window, the file selector would appear with the current file selected.

May we have a beautiful desktop experience, and give it to others.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: nautilus 1:2.26.2-0ubuntu2
ProcEnviron:
 LANG=he_IL.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.28-16-generic i686

Revision history for this message
Shahar Or (mightyiam) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

 * Is this reproducible?
 * If so, what specific steps should we take to recreate this bug?

 This will help us to find and resolve the problem.

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Shahar Or (mightyiam) wrote :

To reproduce,

1. Click on Applications in the menu.
2. Point to Internet.
3. Right click on Firefox Web Browser.
4. Click Add this Launcher to Desktop.
5. Right click on the icon that's been added to the desktop.
6. Click Properties.

No where in the properties window is the location of the file used as the image for this launcher (the icon).

7. Click on the button that has nothing but the Firefox icon on it, near the name of the launcher.

A file selector dialog window appears and it's location is your home directory.

I see now by looking into the source of the .desktop file, that the specification for an icon there is not a path to a file, but some other method of name. It says 'Icon=firefox-3.0'. This is why the file selector dialog window doesn't appear with a file selected, I guess.

So there's no easy way to tell which file is being used as the icon for icons which don't have a specific file defined, but have an icon defined by a different method.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in nautilus (Ubuntu):
importance: Low → Wishlist
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Not sure that users are interested in having details they don't understand or care about cluttering the interface, to send to GNOME by somebody wanting to argue why that is required there

Revision history for this message
Yazen Ghannam (yghannam-deactivatedaccount-deactivatedaccount) wrote :

Hello Shahar,

Have you had a chance to file this report upstream? If so, could you please add a link to this report. Thank you.

Changed in nautilus (Ubuntu):
status: New → Incomplete
Revision history for this message
Shahar Or (mightyiam) wrote :

Here we go.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for sending the bug GNOME

Changed in nautilus (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Bruce van der Kooij (brucevdk) wrote :

Sebastien, your motivations for having this sent upstream intrigue me and I wish to subscribe to your newsletter. ;-)

I'd like to point out that it is possible to figure out the filename using the icon name (see below for some Python code), so it would be possible to have the file chooser start with this file selected. However, ideally this isn't the route we want to take. Instead the file chooser in this instance should be replaced by a dialog tailored towards the job at hand, findings icons.

That's going to require a bit of effort though and the Nautilus team can use any help they can get, so if you're interested in working on this, you'll want to start with writing a specification (rationale, use cases, user interface mockups). Some examples of specifications can be found at https://wiki.ubuntu.com/CategorySpec (template: https://wiki.ubuntu.com/SpecSpec) and https://fedoraproject.org/wiki/Features (for example: https://fedoraproject.org/wiki/Features/UserAccountDialog).

An elaborate example of a specification can be found at https://wiki.ubuntu.com/NotifyOSD

I'll keep an eye on this report.

----------

Here's some Python code which would allow you to lookup the filename for an icon name:

import gtk
icontheme = gtk.icon_theme_get_default()
iconinfo = icontheme.lookup_icon('totem', size=256, flags=gtk.ICON_LOOKUP_USE_BUILTIN)
print iconinfo.get_filename()
... /usr/share/icons/hicolor/scalable/apps/totem.svg

Had you gone with size=24 then it would have selected the PNG instead.

Changed in nautilus:
importance: Unknown → Medium
status: Unknown → New
Changed in nautilus:
status: New → Expired
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.