Skip to content

Commit 15ca17c

Browse files
committed
fp-nvim-launcher.sh: Add ~/.cargo/bin to flatpak path
1 parent a2f8aea commit 15ca17c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fp-nvim-launcher.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ keepass_cmd_pattern="${KW_ARGS["-c"]-$keepass_cmd_pattern}"
2121
keepass_cmd_pattern="${KW_ARGS["--command"]-$keepass_cmd_pattern}"
2222

2323

24-
export FLATPAK_ENABLE_SDK_EXT=typescript,rust-stable,rust-nightly,php82,openjdk17,openjdk,node18,llvm16,golang
24+
export FLATPAK_ENABLE_SDK_EXT="typescript,rust-stable,rust-nightly,php82,openjdk17,openjdk,node18,llvm16,golang"
2525

26-
flatpak run --filesystem="${target_path}" --user io.neovim.nvim 2> >(grep -v 'app/io.neovim.nvim/x86_64/stable not installed' >&2) || flatpak run --filesystem="${target_path}" io.neovim.nvim "${target_path}"
26+
args=(--env=PATH="/app/bin:/usr/bin:$HOME/.cargo/bin" --filesystem="${target_path}" io.neovim.nvim "${target_path}")
27+
flatpak run --user "${args[@]}" 2> >(grep -v 'app/io.neovim.nvim/x86_64/stable not installed' >&2) \
28+
|| flatpak run "${args[@]}"
2729

0 commit comments

Comments
 (0)