GNU/Linux Command – XDG

xdg — Utilities for integrating applications

Summary:
Utilities for integrating applications with the desktop environment, regardless of which desktop environment is used. These tools are part of freedesktop.org’s Portland project.

Examples:
$ xdg-open file.png -- Open the file in the preferred application. $ xdg-open file.pdf -- Same as above. $ xdg-open ilugc.in -- Same as above. $ xdg-mime query filetype file.png -- Show the file's MIME Type. $ xdg-mime query filetype file.pdf -- Same as above. $ xdg-email 'foo@bar.in' -- Open it default composer. $ xdg-screensaver status -- Show the screensaver status. $ xdg-screensaver active -- Activate the screensaver. $ xdg-screensaver lock -- Lock the screen. $ xdg-screensaver reset -- Deactivate the screensaver.
Behaviors of this command may vary depends upon your desktop settings.

Other tools:
* xdg-desktop-menu – Install desktop menu items
* xdg-desktop-icon – Install icons on the user’s desktop
* xdg-icon-resource – Install icon resources
* xdg-user-dirs – Manage “well known” user directories

Read the man pages, to know more about the other options supported these tools.

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: