set of bash functions based on freedesktop.org specifications