]> Sergey Matveev's repositories - nnn.git/commitdiff
dragdrop: use "dragon-drop" if it exists
authorNRK <nrk@disroot.org>
Sun, 20 Feb 2022 08:41:37 +0000 (14:41 +0600)
committerNRK <nrk@disroot.org>
Sun, 20 Feb 2022 08:41:37 +0000 (14:41 +0600)
to avoid name conflict some distros renamed dragon to `dragon-drop`
https://github.com/mwh/dragon/issues/17#issuecomment-889878960

plugins/dragdrop

index 6ecb5c8d635fbc6b89069e01f76ac97f424b3df5..5dea84289514f0b6c9b052d3c1cd96eebbb8f380 100755 (executable)
@@ -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