设置每个扩展名的 Nautilus 文件图标
是否可以通过其 扩展接口?
我认为,在浏览包含音乐的文件夹时看到嵌入 ID3v2 APIC 帧的 MP3 文件的专辑封面会很酷。到目前为止,我能够提取图片,并复制粘贴一些示例代码以将标志和菜单项添加到 Nautilus。但列提供程序和文件信息提供程序都没有提供更改图标的明显方法。
另一个答案建议使用gvfs-set-attribute
,但我宁愿动态提取图标,也不愿在某处创建大量不必要的文件。
预先感谢您提供任何有用的建议!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不带扩展接口。创建单个图标的规范方法是在
/desktop/gnome/thumbnailers
下的 gconf 数据库中注册所谓的“thumbnailer”。对于 ID3v2 APIC 框架,解决方案已经可用。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.