Use new subprograms available in libxdg.

Signed-off-by: darkestkhan <darkestkhan@gmail.com>