Package: xdg-utils Version: 1.1.3-4.1 File: /usr/bin/xdg-settings Why not make an error message? $ xdg-settings get default-web-browser firefox.desktop $ xdg-settings set default-web-browser google-chrome.desktop $ xdg-settings get default-web-browser firefox.desktop Yes, $? was 2.