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
This commit is contained in:
NRK 2022-02-20 14:41:37 +06:00
parent cb410e25d8
commit a8e9d279ac

View file

@ -19,6 +19,8 @@ resp=f
all= all=
if type dragon-drag-and-drop >/dev/null 2>&1; then if type dragon-drag-and-drop >/dev/null 2>&1; then
dnd="dragon-drag-and-drop" dnd="dragon-drag-and-drop"
if type dragon-drop >/dev/null 2>&1; then
dnd="dragon-drop"
else else
dnd="dragon" dnd="dragon"
fi fi