darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

Check XDG information rather than hardcoding #317

Open escondida opened 2 years ago

escondida commented 2 years ago

Per the specification, the XDG directories are not hardcoded to a single value but may be set by users and/or system administrators. It would be nice if the install and find_browsers functions dook that into account, looking in $XDG_CONFIG_HOME and $XDG_DATA_HOME (respectively) before checking the default locations.