Commit 9cb017ae authored by Rex Dieter's avatar Rex Dieter
Browse files

xdg-open: use pcmanfm only if it is available (BR106161)

 Please enter the commit message for your changes. Lines starting
parent 207d8b39
......@@ -2,6 +2,7 @@
2018-05-10
* xdg-open: Add Deepin Desktop Environment support (BR106143)
* xdg-open: use pcmanfm only if it is available (BR106161)
2018-05-09
* xdg-open: Argument injection in xdg-open open_envvar (BR103807)
......
......@@ -449,8 +449,9 @@ open_generic()
open_lxde()
{
# pcmanfm only knows how to handle file:// urls and filepaths, it seems.
if is_file_url_or_path "$1"; then
if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
local file="$(file_url_to_path "$1")"
# handle relative paths
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment