Forrest logo
tool overview
On this page you find all important commands for the CLI tool xdg-settings. If the command you are looking for is missing please ask our AI.

xdg-settings

"xdg-settings" is a command-line tool in Linux that allows users to retrieve and modify the current default settings for various desktop environments. It is part of the xdg-utils package, which provides a set of utilities for integrating desktop environments with the FreeDesktop.org specifications. With "xdg-settings," users can manage default applications for web browsing, email clients, terminal emulators, and more. This tool allows users to set their preferred applications for different file types and protocols. Additionally, "xdg-settings" enables users to check or change the default web browser, window manager, or file manager. It is a versatile tool that provides a convenient way to configure default settings in a multi-environment Linux system.

List of commands for xdg-settings:

  • xdg-settings:tldr:5b799 xdg-settings: Print the default web browser.
    $ xdg-settings get ${default-web-browser}
    try on your machine
    explain this command
  • xdg-settings:tldr:603c8 xdg-settings: Set the default mail URL scheme handler to Evolution.
    $ xdg-settings set ${default-url-scheme-handler} ${mailto} ${evolution-desktop}
    try on your machine
    explain this command
  • xdg-settings:tldr:624c7 xdg-settings: Set the default PDF document viewer.
    $ xdg-settings set ${pdf-viewer-desktop}
    try on your machine
    explain this command
  • xdg-settings:tldr:a3858 xdg-settings: Set the default web browser to Firefox.
    $ xdg-settings set ${default-web-browser} ${firefox-desktop}
    try on your machine
    explain this command
  • xdg-settings:tldr:d7773 xdg-settings: Display help.
    $ xdg-settings --help
    try on your machine
    explain this command
tool overview