The xdg-utils fail to associate icons with mime types in Gnome. (SUSE 10.0/Gnome 2.12.0) It works in KDE. $ xdg-icon-resource install --size 32 icons/red-32.png xdgtestdata-icontest.png $ xdg-mime install --novendor xdg-utils-usecases/data/icon_file.xml $ echo 'bar' >foo.xdgtest $ xdg-mime query filetype foo.xdgtest xdgtestdata/icontest Yet when foo.xdgtest is viewed in nautulus, we only see a generic icon. Interestingly, when we select "view as icon" a preview icon with the file text "bar" is shown.
xdg-icon-resource must specify --context mimetypes See the example at the bottom of http://portland.freedesktop.org/xdg-utils- 1.0beta2/xdg-mime.html Does it work if you add that?
Added xdg-utils-usecases/t.10-file_icon to address this issue. NOTE: The file extension mentioned above has changed from 'xdgtest' to 'xdgtestext' to facilitate uniqueness. ====================================================== [Wed Aug 9 16:36:25 PDT 2006] TEST RUN START: xdg-utils-usecases/t.10-file_icon distribution: suse 10.0 xdg-utils: 1.0beta2 kde: 3.4.2 gnome: 2.12.0 xfce: not present (didn't find xfce4-session) running: gnome user: normal uname: Linux linux 2.6.13-15.11-default #1 Mon Jul 17 09:43:01 UTC 2006 i686 i686 i386 GNU/Linux xset data: ------------------------------------- Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000000 auto repeat delay: 500 repeat rate: 30 auto repeating keys: 00ffffffdffffbbf fadfffdfffdfe5ef ffffffffffffffff ffffffffffffffff bell percent: 50 bell pitch: 400 bell duration: 100 Pointer Control: acceleration: 2/1 threshold: 4 Screen Saver: prefer blanking: yes allow exposures: yes timeout: 0 cycle: 0 Colors: default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215 Font Path: /usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/truetype,/usr/X11R6/lib/X11/fonts/uni:unscaled,/opt/kde3/share/fonts Bug Mode: compatibility mode is disabled DPMS (Energy Star): Standby: 7200 Suspend: 7200 Off: 14400 DPMS is Disabled File paths: Config file: /etc/X11/xorg.conf Modules path: /usr/X11R6/lib/modules Log file: /var/log/Xorg.0.log ------------------------------------- [Wed Aug 9 16:36:28 PDT 2006] ---- root run start: xdg-utils-usecases/t.10-file_icon [Wed Aug 9 16:36:29 PDT 2006] test_file_icon: ensure that associations with filetypes is correct.: FAIL User indicated 'n' instead of 'y' in respnonse to 'Does the icon consist of a red number in the list {16 22 24 32 48 64 128}? The number should roughly correspond to the icon size. (You may need to select something like 'View->As Icons')' Test has already failed. Not bothering to ask 'Does the number change appropriately when you increase or decrease the view size?' [Wed Aug 9 16:37:26 PDT 2006] ---- root run end: 1 tests failed, 0 of 1 tests passed. (1 attempted) [Wed Aug 9 16:37:26 PDT 2006] ---- normal user run start: xdg-utils-usecases/t.10-file_icon [Wed Aug 9 16:37:26 PDT 2006] test_file_icon: ensure that associations with filetypes is correct.: FAIL User indicated 'n' instead of 'y' in respnonse to 'Does the icon consist of a red number in the list {16 22 24 32 48 64 128}? The number should roughly correspond to the icon size. (You may need to select something like 'View->As Icons')' Test has already failed. Not bothering to ask 'Does the number change appropriately when you increase or decrease the view size?' [Wed Aug 9 16:37:50 PDT 2006] ---- normal user run end: 1 tests failed, 0 of 1 tests passed. (1 attempted) [Wed Aug 9 16:37:50 PDT 2006] TEST RUN END: xdg-utils-usecases/t.10-file_icon - 2 tests failed, 0 of 2 tests passed. (2 attempted)
(In reply to comment #1) > Does it work if you add that? Yes. Fixing tests and marking bug INVALID.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.