LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xdg-settings

Manage XDG default application settings

TLDR

Print the default web browser
$ xdg-settings get default-web-browser
copy
Set the default web browser to Firefox
$ xdg-settings set default-web-browser firefox.desktop
copy
Check if Firefox is the default browser
$ xdg-settings check default-web-browser firefox.desktop
copy
Set the default mail handler to Evolution
$ xdg-settings set default-url-scheme-handler mailto evolution.desktop
copy
Get the default handler for the mailto scheme
$ xdg-settings get default-url-scheme-handler mailto
copy

SYNOPSIS

xdg-settings {get|check|set} property [subproperty] [value]

DESCRIPTION

xdg-settings manages settings for XDG-compatible desktop environments. It primarily handles default application settings like web browsers and URL scheme handlers.The tool provides a standardized way to configure these settings across different desktop environments (GNOME, KDE, XFCE, etc.).

PARAMETERS

get _property_

Get the current value of a property
set _property_ _value_
Set the value of a property
check _property_ _value_
Check if a property has a specific value
default-web-browser
Default web browser property
default-url-scheme-handler _scheme_
Default handler for URL schemes (mailto, ftp, https, etc.)
--list
List all properties supported by xdg-settings

CAVEATS

Application values are .desktop file names without the path. Some desktop environments may have additional configuration tools. Part of the xdg-utils package.

SEE ALSO

Copied to clipboard
Kai