From: 0xACE <0xACE@users.noreply.github.com> Date: Sat, 12 Oct 2019 19:18:50 +0000 (+0200) Subject: Check for alternative name for drag/drop exec (#354) X-Git-Tag: v2.8~165 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=262c94f696aa3407bd8378cc525faeb655f27f8f;p=nnn.git Check for alternative name for drag/drop exec (#354) KDE dragon player collides with the name of the drag/drop dependency. On archlinux the binary is renamed to `dragon-drag-and-drop`. This change tries `dragon-drag-and-drop` before defaulting to `dragon`. --- diff --git a/plugins/drag-file b/plugins/drag-file index c44acf9d..4bf57baf 100755 --- a/plugins/drag-file +++ b/plugins/drag-file @@ -12,7 +12,11 @@ all= dnd() { - dragon "$@" + if which dragon-drag-and-drop; then + dragon-drag-and-drop "$@" + else + dragon "$@" + fi } function use_all() diff --git a/plugins/drop-file b/plugins/drop-file index d824c301..f43cde14 100755 --- a/plugins/drop-file +++ b/plugins/drop-file @@ -16,7 +16,11 @@ selection=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection dnd() { - dragon "$@" + if which dragon-drag-and-drop; then + dragon-drag-and-drop "$@" + else + dragon "$@" + fi } function add_file() {