andis-sprinkis/xdg-open-simple
xdg-open, smaller
xdg-open-simple
A more minimal variant of xdg-open.
Characteristics
-
Adheres to the same XDG specifications as the original
xdg-open -
Support for the relative target file paths and URLs has been added.
-
Retains the original
xdg-openexit codes. -
From
xdg-utilssubstitutes only thexdg-open, not the other tools. -
Some of the original
xdg-openfunctionality has been REMOVED:-
Auto-forwarding target paths without a known MIME handler to a web browser. (Not in specifications)
Reasons for removal:
- Obfuscates that there is a missing MIME handler on the system.
- Unexpected and needless behavior - the web browser creating a copy of the target file in the downloads directory.
-
Handling the
$BROWSERvariable. (Not in specifications)Reasons for removal:
- A legacy convention of setting the default web browser on some environments.
- Redundant, overlaps with the core functionality of
xdg-open.
-
Handling any
mimeapps.listand Desktop file search paths that have been deprecated. (In specifications) -
The desktop environment specific integrations:
- Auto-forwarding target paths to desktop environment specific file openers. (Not in specifications)
- Use of the file
<desktop environment name>-mimeapps.list. (In specifications) - Use of the file
<desktop environment name>-mimeinfo.cache. (Not in specifications)
Reasons for removal:
-
Lack of a robust identification of the desktop environments and their the default opener commands.
These features have required adding lots of work-arounds in the original
xdg-open. -
Not required for the core functionality of this tool.
-
Substituting
Name(%c) andIcon(%i) field codes within theExeckey to pass program icon identifiers and localized program names to the applications. (In specifications)Reason for removal:
- Unlikely to be in use - out of more than 100 Desktop files on my Linux system, none use these field codes.
-