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
1 changed files with 2 additions and 0 deletions

View File

@ -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