diff options
author | 0xACE <0xACE@users.noreply.github.com> | 2019-10-12 21:18:50 +0200 |
---|---|---|
committer | Mischievous Meerkat <engineerarun@gmail.com> | 2019-10-13 00:48:50 +0530 |
commit | 262c94f696aa3407bd8378cc525faeb655f27f8f (patch) | |
tree | fa8373cbc518d6ef8527c63250a14321f026c79b /plugins/drop-file | |
parent | e371182a5bf5b612ba3dca1abcbc099b341207d7 (diff) | |
download | nnn-262c94f696aa3407bd8378cc525faeb655f27f8f.tar.gz |
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`.
Diffstat (limited to 'plugins/drop-file')
-rwxr-xr-x | plugins/drop-file | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/drop-file b/plugins/drop-file index d824c30..f43cde1 100755 --- a/plugins/drop-file +++ b/plugins/drop-file @@ -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() { |