如何使用终端将会徽设置到文件或文件夹中

时间:2022-09-28 00:32:21

I have used this command

我用过这个命令

nautilus_file_info_add_emblem("NautilusFileInfo" new_file const char urgent)

鹦鹉螺(鹦鹉螺)

also

gvfs -set -attribute -t stringv new_file metadata::emblems Urgent

gvfs -set -attribute -t stringv new_file元数据:::标志紧急

But these are not working.

但这些都不起作用。

1 个解决方案

#1


2  

With this you can get the emblem:

用这个你可以得到徽章:

 gvfs-info -a metadata::emblems <folder>

and with this you can change it:

有了这个,你可以改变它:

gvfs-set-attribute -t stringv <folder> metadata::emblems <emblem>

#1


2  

With this you can get the emblem:

用这个你可以得到徽章:

 gvfs-info -a metadata::emblems <folder>

and with this you can change it:

有了这个,你可以改变它:

gvfs-set-attribute -t stringv <folder> metadata::emblems <emblem>