perl-file-basedir (File::BaseDir - Use the Freedesktop.org base directory specification)

This module can be used to find directories and files as specified by the 
Freedesktop.org Base Directory Specification.
