1

I'm using icons to categorize my folders but sometimes I move the icons to a more appropiate place so the next time I load the folder, the folder icon isn't set. Could I edit manually (replace text) the folder configuration to avoid searching its icon again? Where are those files? Could I edit also view mode for a certain folder manually (changing a value inside a file)?

  • this page shows a list of files in the caja package about 3/4 of way down the page ...... https://centos.pkgs.org/7/epel-x86_64/caja-1.16.6-1.el7.x86_64.rpm.html .......... check the contents `.desktop` files first ........... look fo any `.desktop` files in the folders in question – jsotola Feb 28 '19 at 00:22

1 Answers1

1

Caja stores the info you're looking for in GVFS databases.

You should be able to make changes like you describe using the gio utility which can be used to view, edit, or otherwise manipulate the data in the GVFS databases. See man gio.

The particular gio commands that will likely be of most interest to you initially are info (shows information about the given locations) and set (sets a file attribute on a file).

The gio utility apparently replaces a collection of older GVFS commands such as gvfs-info (as suggested at, e.g., https://unix.stackexchange.com/a/200666/274746).

As for the location of those files, the database files should be in ~/.local/share/gvfs-metadata/ unless $XDG_DATA_HOME has been changed. In the latter case they should be in $XDG_DATA_HOME/gvfs-metadata. See https://stackoverflow.com/a/10964074/8100489. Either way, you'll most likely find it difficult or impossible to edit them directly (as suggested, e.g., at https://askubuntu.com/a/47548).

Yurij Goncharuk
  • 4,177
  • 2
  • 19
  • 36
David Yockey
  • 1,653
  • 7
  • 12