开发者

How to change icon/emblem of a directory from bash

开发者 https://www.devze.com 2022-12-19 00:24 出处:网络
I\'m playing around with get_iplayer (fantastic) it\'s running every few hours to grab any new episodes of whatever....

I'm playing around with get_iplayer (fantastic) it's running every few hours to grab any new episodes of whatever....

After it has finished grabbing anything new i'd like to change the emblem of ~/Videos to add a plus or star (nautilus emblem preferably)

Do i go about this via nautilus?

Do i need to change some开发者_Python百科thing in gnome-config?

I'm sure this can't be FS level?

Cheers for any links and advice.


gvfs-set-attribute ~/Videos -t stringv metadata::emblems new urgent

gvfs-set-attribute -t string $FOLDER metadata::custom-icon file:///home/user/path/to/icon.jpg


There's a package called libnautilus that provides tools for working with nautilus, including emblems. It's what Dropbox uses, for example, to add emblems showing sync status. You could try looking at the source of that.

0

精彩评论

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

关注公众号