User Tools

Site Tools


wiki:set_file_emblem_via_command_line_thunar

Set file emblem via command line in Thunar

Get metadata on location

gio info metadata:: path_to/some_file_or_folder

Set emblem

gio set _path_to/some_file_or_folder_ -t stringv metadata::emblems _emblem_name_

e.g. set green checkmark for emblem in Downloads directory

gio set Downloads/somefile -t stringv metadata::emblems emblem-default

Clear emblem

gio set Downloads/somefile -t stringv metadata::emblems none

Emblem icons start with string “emblem-*”. Search in /usr/share/icons or right click on some file go to emblems and hover mouse cursor to see the name without the emblem part.

You need to reenter or refresh the Thunar location for the emblem to show up.

Tested on

  • xfce 4.14.3
  • Xubuntu 20.04

See also

References

wiki/set_file_emblem_via_command_line_thunar.txt · Last modified: 2021/06/29 14:50 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki