--- /usr/bin/xdg-open 2018-05-11 22:39:34.618755354 +0300 +++ xdg-open 2018-05-23 23:58:58.184279559 +0300 @@ -939,7 +939,7 @@ { # pcmanfm only knows how to handle file:// urls and filepaths, it seems. - if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then + if ([ -x /usr/bin/pcmanfm ] && is_file_url_or_path "$1" ); then local file="$(file_url_to_path "$1")" # handle relative paths