Directory entry files must reside in the $XDG_DATA_DIRS/desktop-directories directory. If $XDG_DATA_DIRS is not set, then the default path is /usr/share is used. This also implies that user specific directory entries may be located at $XDG_DATA_HOME/desktop-directories which is searched first. If $XDG_DATA_HOME is not set, then the default path ~/.local/share is used. Directory entries are collected from all directories in the $XDG_DATA_DIRS environment variable. Directories which appear first in $XDG_DATA_DIRS are given precedence when there are several .directory files with the same name.
Direktorioko sarrera-fitxategiek $XDG_DATA_DIRS/desktop-directories direktorioan egon behar dute. $XDG_DATA_DIRS ezarria ez badago, /usr/share bide-izen lehenetsia erabiltzen da. Ondorioz, erabiltzaile baten berariazko direktorioko sarrera $XDG_DATA_HOME/desktop-directories(e)n ere koka daiteke, hor bilatzen baita lehendabizi. $XDG_DATA_HOME ezarria ez badago, ~/.local/share bide-izen lehenetsia erabiltzen da. $XDG_DATA_DIRS ingurune-aldagaiko direktorio guztietan jasotzen dira direktorioko sarrerak. Izen bereko .directory fitxategi bat baino gehiago daudenean, lehentasuna dute $XDG_DATA_DIRSen lehenbizi agertzen direnek.