Introduction to xdg-utils

xdg-utils is a a set of command line tools that assist applications with a variety of desktop integration tasks. It is required for Linux Standards Base (LSB) conformance.

This package is known to build and work properly using an LFS-7.4 platform.

Package Information

Installation of xdg-utils

Compile xdg-utils with the following commands:

./configure --prefix=/usr --mandir=/usr/share/man


The tests for the scripts must be made from a X-Window based session. There are several run-time requirements to run the tests including a broswer and an MTA. Running the tests as root usr is not recommended.

To run the tests, issue: make test.

Now install it as the root user:

make install


Installed Programs: xdg-desktop-menu, xdg-desktop-icon, xdg-mime, xdg-icon-resource, xdg-open, xdg-email, xdg-screensaver, xdg-settings
Installed Libraries: None
Installed Directories: None

Short Descriptions


is a command line tool for (un)installing desktop menu items.


is a command line tool for (un)installing icons to the desktop.


is a command line tool for querying information about file type handling and adding descriptions for new file types.


is a command line tool for (un)installing icon resources.


opens a file or URL in the user's preferred application.


opens the user's preferred e-mail composer in order to send a mail message.


is a command line tool for controlling the screensaver.


is a command line tool for managing various settings from the desktop environment.

Last updated on