From ArchWiki
Revision as of 11:58, 8 January 2012 by Untitaker (talk | contribs)
Jump to navigation Jump to search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Xdg-open#)

xdg-open is a desktop-independent tool for configuring the default applications of a user. Many applications invoke the Template:Codeline command internally.

You can bind mimetypes to .desktop files in Template:Filename and Template:Filename with the xdg-mime command:

# This will make Thunar the default file-browser, i.e. the default application for opening folders.
xdg-mime default Thunar.desktop inode/directory

The best way to look up the MIME type is to read the Template:Codeline list in your application's Template:Filename file.

The config file

Template:Codeline saves the configuration for Template:Codeline in Template:Filename. Its format is as follows:

[Default Applications]

For example,

[Default Applications]

It seems that it is perfectly save to edit that file.

If you want to set your default applications system-wide, copy this file to Template:Filename

Environment Variables

export BROWSER=chromium # this will make xdg-open use chromium for any kind of URLs
export DE="xfce" # This will make xdg-open use the more user-friendly exo-open, because it assumes it is inside Xfce. Use exo-preferred-applications for configuring.

See also