xdg-settings
Manage XDG default application settings
TLDR
Print the default web browser
$ xdg-settings get default-web-browser
Set the default web browser to Firefox$ xdg-settings set default-web-browser firefox.desktop
Check if Firefox is the default browser$ xdg-settings check default-web-browser firefox.desktop
Set the default mail handler to Evolution$ xdg-settings set default-url-scheme-handler mailto evolution.desktop
Get the default handler for the mailto scheme$ xdg-settings get default-url-scheme-handler mailto
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 propertyset _property_ _value_
Set the value of a propertycheck _property_ _value_
Check if a property has a specific valuedefault-web-browser
Default web browser propertydefault-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.
