mirror of
https://github.com/jarun/nnn.git
synced 2024-11-04 18:33:12 +00:00
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`.
This commit is contained in:
parent
e371182a5b
commit
262c94f696
|
@ -12,7 +12,11 @@ all=
|
|||
|
||||
dnd()
|
||||
{
|
||||
dragon "$@"
|
||||
if which dragon-drag-and-drop; then
|
||||
dragon-drag-and-drop "$@"
|
||||
else
|
||||
dragon "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
function use_all()
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue