Bug#922914: If cannot change default, then at least return an error
積丹尼 Dan Jacobson
jidanni at jidanni.org
Thu Feb 21 20:14:21 GMT 2019
$ xdg-mime default zzzz.desktop text/html; echo $?
$ xdg-mime query default text/html
Or make a sixth exit code to say what happened in this case.
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
Error in command line syntax.
One of the files passed on the command line did not exist.
A required tool could not be found.
The action failed.
No permission to read one of the files passed on the command line.
More information about the Pkg-freedesktop-maintainers