The MIME database is created from the set of files located in the $XDG_DATA_HOME/mime and $XDG_DATA_DIRS/mime directories. If these environment variables are unset, then they default to the values ~/.local/share and /usr/local/share:/usr/share respectively. As can be seen from the default value for $XDG_DATA_DIRS , each environment variable is actually a colon separated list of directories. The user's database at $XDG_DATA_HOME/mime has precedence over the system database at $XDG_DATA_DIRS/mime when conflicting definitions are encountered. Similar to the XDG shared mime specification, we will refer to this set of directories as lt;MIMEgt; in the rest of this document.
MIMEren datu-basea $XDG_DATA_HOME/mime eta $XDG_DATA_DIRS/mime direktorioetako fitxategi multzoarekin osatzen da. ingurune-aldagai horiek ezarri gabe badaude, ~/.local/share eta /usr/local/share:/usr/share dira balio lehenetsiak, hurrenez hurren. $XDG_DATA_DIRSen balio lehenetsian ikus daitekeenez, puntu eta komaz bereizitako direktorio-zerrenda bat dela ingurune-aldagai bakoitza. Gatazka eragiten duten definizioak topatzean, $XDG_DATA_HOME/mimeko erabiltzaileen datu-baseak lehentasuna du $XDG_DATA_DIRS/mime sistemaren datu-basearekiko. XDGren mime partekatuen zehaztapena(r)ekin bat etorriz, lt;MIMEgt; deituko diogu direktorio multzo horri hemendik aurrera.