瀏覽代碼

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`.
master
0xACE Mischievous Meerkat 5 年之前
父節點
當前提交
262c94f696
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. +5
    -1
      plugins/drag-file
  2. +5
    -1
      plugins/drop-file

+ 5
- 1
plugins/drag-file 查看文件

@@ -12,7 +12,11 @@ all=

dnd()
{
dragon "$@"
if which dragon-drag-and-drop; then
dragon-drag-and-drop "$@"
else
dragon "$@"
fi
}

function use_all()


+ 5
- 1
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() {


Loading…
取消
儲存