From 9cf1a5c62f23e7b2f380806bbb9831bf36ef449a Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Mon, 12 Dec 2016 16:43:02 +0100 Subject: [PATCH] xdg-open: Add forgotten "elif" in open_xfce "elif" command was not used in open_xfce by commit 0d6eebb. A file may be opened twice using different tools under xfce consequently. Replace "if" by "elif" in order to fix this issue. https://bugs.freedesktop.org/show_bug.cgi?id=99063 --- scripts/xdg-open.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in index c8d7f93..7befa26 100644 --- a/scripts/xdg-open.in +++ b/scripts/xdg-open.in @@ -201,7 +201,7 @@ open_xfce() { if exo-open --help 2>/dev/null 1>&2; then exo-open "$1" - if gio help open 2>/dev/null 1>&2; then + elif gio help open 2>/dev/null 1>&2; then gio open "$1" elif gvfs-open --help 2>/dev/null 1>&2; then gvfs-open "$1" -- 2.9.3