开发者

Set Nautilus file icon per extension

开发者 https://www.devze.com 2023-03-06 22:20 出处:网络
Is it possible to change the icon (not the emblem) of a file in Nautilus\' icon view mode by means of its extension interface?

Is it possible to change the icon (not the emblem) of a file in Nautilus' icon view mode by means of its extension interface?

It would be cool, I think, to see the album covers of MP3 files of embedded ID3v2 APIC frames while browsing folders with music. Until now, I am able to extract the picture and I copypastehacked some example code to add emblems and menu items to Nautilus. But neither the column provider nor the file info provider offer an obvious way to change the icon.

Another answer suggests using gvfs-set-attribute, but I would rather extract the icon dynamically instead of creating 开发者_如何学运维a lot of unnecessary files somewhere.

Thanks in advance for any helpful suggestions!


No, not with the extension interface. The canonical way to create individual icons is to register a so called "thumbnailer" in the gconf database under /desktop/gnome/thumbnailers. For ID3v2 APIC frames, solutions are already available.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号