Skip to content

Commit

Permalink
fp-nvim-launcher.sh: Add ~/.cargo/bin to flatpak path
Browse files Browse the repository at this point in the history
  • Loading branch information
theCalcaholic committed Aug 10, 2023
1 parent a2f8aea commit 15ca17c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fp-nvim-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ keepass_cmd_pattern="${KW_ARGS["-c"]-$keepass_cmd_pattern}"
keepass_cmd_pattern="${KW_ARGS["--command"]-$keepass_cmd_pattern}"


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

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

0 comments on commit 15ca17c

Please sign in to comment.