From: NRK Date: Sun, 20 Feb 2022 08:41:37 +0000 (+0600) Subject: dragdrop: use "dragon-drop" if it exists X-Git-Tag: v4.5~25^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a8e9d279ac2ee64131177231175266c116298722;p=nnn.git dragdrop: use "dragon-drop" if it exists to avoid name conflict some distros renamed dragon to `dragon-drop` https://github.com/mwh/dragon/issues/17#issuecomment-889878960 --- diff --git a/plugins/dragdrop b/plugins/dragdrop index 6ecb5c8d..5dea8428 100755 --- a/plugins/dragdrop +++ b/plugins/dragdrop @@ -19,6 +19,8 @@ resp=f all= if type dragon-drag-and-drop >/dev/null 2>&1; then dnd="dragon-drag-and-drop" +if type dragon-drop >/dev/null 2>&1; then + dnd="dragon-drop" else dnd="dragon" fi