From 20154a8880b6d6334decc482e966f00a44292149 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Wed, 30 Apr 2025 03:21:48 +0000 Subject: [PATCH] fix(main/neovim): backport upstream fix to `.desktop` file - This backports: https://github.com/neovim/neovim/pull/33685 --- packages/neovim/backport-upstream-33685.patch | 37 +++++++++++++++++++ packages/neovim/build.sh | 1 + 2 files changed, 38 insertions(+) create mode 100644 packages/neovim/backport-upstream-33685.patch diff --git a/packages/neovim/backport-upstream-33685.patch b/packages/neovim/backport-upstream-33685.patch new file mode 100644 index 0000000000..0e1a6c7fd5 --- /dev/null +++ b/packages/neovim/backport-upstream-33685.patch @@ -0,0 +1,37 @@ +From d8c8068cf55a7e528f8e979b02d620a053b53f82 Mon Sep 17 00:00:00 2001 +From: "Justin M. Keyes" +Date: Sun, 27 Apr 2025 15:49:00 -0700 +Subject: [PATCH] Revert "fix(desktop): cannot open filename with spaces using + OS file manager" #33684 + +This reverts commit 6e12ef4a7b4cd966244ac6bce2593943e7df7758 + +> Paths with spaces were already working. The original bug is most +> likely with user's terminal desktop entry, file manager or DE, and has +> nothing to do with nvim.desktop. + +These are 3 different implementations that work correctly with unquoted %F and spaces: +``` +$ DE=generic xdg-open "D I R/F I L E.txt" # pure bash +$ gio open "D I R/F I L E.txt" # glib2 +$ handlr open "D I R/F I L E.txt" # rust +``` + +(cherry picked from commit 07a207a5f16be98053a56cc0a20d182717deaf54) +--- + runtime/nvim.desktop | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/runtime/nvim.desktop b/runtime/nvim.desktop +index 50326fa618e003..f9feae926db76f 100644 +--- a/runtime/nvim.desktop ++++ b/runtime/nvim.desktop +@@ -78,7 +78,7 @@ Comment[wa]=Asspougnî des fitchîs tecses + Comment[zh_CN]=编辑文本文件 + Comment[zh_TW]=編輯文字檔 + TryExec=nvim +-Exec=nvim "%F" ++Exec=nvim %F + Terminal=true + Type=Application + Keywords=Text;editor; diff --git a/packages/neovim/build.sh b/packages/neovim/build.sh index fd96423952..1275386283 100644 --- a/packages/neovim/build.sh +++ b/packages/neovim/build.sh @@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0, VIM License" TERMUX_PKG_LICENSE_FILE="LICENSE.txt" TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000" TERMUX_PKG_VERSION="0.11.1" +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=ffe7f9a7633ed895ff6adb1039af7516cd6453715c8889ad844b6fa39c3df443 TERMUX_PKG_AUTO_UPDATE=true