After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 300406 - icons are not searched in $XDG_DATA_HOME/share/pixmaps
icons are not searched in $XDG_DATA_HOME/share/pixmaps
Status: RESOLVED NOTABUG
Product: gnome-vfs
Classification: Deprecated
Component: File operations
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-12 22:17 UTC by Stanislav Brabec
Modified: 2005-04-12 22:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Stanislav Brabec 2005-04-12 22:17:17 UTC
Version details: gnome-vfs-2.10.0
Distribution/Version: Gentoo Linux unstable

Create a desktop file in ~/.local/share/applications and copy icon to
~/.local/share/pixmaps.

Run gnome-panel or nautilus open with dialog.

Icons are not searched in $XDG_DATA_HOME/share/pixmaps, but only in
$XDG_DATA_HOME/share/icons and $XDG_DATA_DIRS/share/{pixmaps,icons}. The problem
is independent on XDG_DATA_HOME set/unset.

Test file test.desktop (you need to copy any png file to test.png):
[Desktop Entry]
Name=Test
Comment=Test comment
GenericName=Test GenericName
Categories=Application;
Encoding=UTF-8
Exec=test
StartupNotify=false
Terminal=false
Type=Application
Icon=test
MimeType=text/html;

Notes:

Depending on distribution, change of Categories can be required.

$ grep XDG_DATA_ /usr/lib/*.so
Binary file /usr/lib/libeel-2.so matches
Binary file /usr/lib/libglib-2.0.so matches
Binary file /usr/lib/libgnomevfs-2.so matches
Binary file /usr/lib/libgtk-x11-2.0.so matches
Comment 1 Sebastien Bacher 2005-04-12 22:42:13 UTC
That's not a bug.

According to the icon theme specification
(http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-0.9.html):

" Icons and themes are looked for in a set of directories. By default, apps
should look in $HOME/.icons (for backwards compatibility), in
$XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order)."