Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5986  / 1 Year ago, fri, november 18, 2022, 1:18:22

On a fresh Ubuntu, you usually have these default (empty) folders:




  • Downloads

  • Documents

  • Music

  • Videos

  • ...



all with special emblems.



BUT, where are these Emblems coming from?, what's telling Nautilus to display these emblems?
Now that Nautilus has dropped Emblems support, I am unable to inspect or change these emblems via GUI. Just being curious here...



Update



As I posted as comment to Uri's answer: everyone here, is right: I was confusing emblems with folder-specific icons in this case. But: let me rephrase my question:



Why does, for example, Nautilus know that it has to apply a special icon for these directories? Is there some flag on the actual dir, a metadata field in GVFS or is this hard-coded into Nautilus?



(running Ubuntu 12.04.1)


More From » filemanager

 Answers
7

Those are not emblems, in the image below you can see that the emblems are located in the lower right part of the Item (in this case is a symlink/shortcut).


The Icons for the user folders usually have a little representation of what that folder is all about. Those folders are "special" and are different from the rest of the folders on your system. In this example the folder is Shared/Public stuff, next to this is a regular folder.


Icons are located in two locations:



  1. ~/.icons

  2. /usr/share/icons


Depending on the the icon theme, they will placed in different categories (most are in /places).


This will help you understand it better:





Image





Why does, for example, Nautilus know that it has to apply a special icon for these directories? Is there some flag on the actual dir, a metadata field in GVFS or is this hard-coded into Nautilus?



It's a standard set by the freedesktop organization called xdg-user-dirs.


From the site:



xdg-user-dirs is a tool to help manage "well known" user directories like the desktop folder and the music folder. It also handles localization (i.e. translation) of the filenames.


The way it works is that xdg-user-dirs-update is run very early in the login phase.


This program reads a configuration file, and a set of default directories. It then creates localized versions of these directories in the users home directory and sets up a config file in $(XDG_CONFIG_HOME)/user-dirs.dirs (XDG_CONFIG_HOME defaults to ~/.config) that applications can read to find these directories.



You can read more about the XDG Base Directory Specification here.


[#33420] Friday, November 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
exceeeelh

Total Points: 21
Total Questions: 109
Total Answers: 120

Location: Marshall Islands
Member since Wed, Jan 5, 2022
2 Years ago
exceeeelh questions
Sun, Nov 20, 22, 17:08, 1 Year ago
Sat, Jan 1, 22, 08:04, 2 Years ago
Wed, May 12, 21, 05:11, 3 Years ago
;