How to change icon/emblem of a directory from bash

后端 未结 2 967
感动是毒
感动是毒 2021-01-02 19:34

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

相关标签:
2条回答
  • 2021-01-02 19:49

    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 讨论(0)
  • 2021-01-02 20:12

    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

    0 讨论(0)
提交回复
热议问题