shell: bash, fish
other-applications: xfce4-whiskermenu, tmux
I'm trying to have GVim inherit the full path from bash and/or fish when launching from from xfce-whisker-menu.
From whisker-menu, I have the default paths set inside gvim:
When launched from the terminal, of course I get the full path of the shell.
I tried altering my gvim.desktop to
Exec=/bin/bash -c 'gvim -f %F'
But that just ends up launching xfce4-terminal and gvim without the full inherited path.
In addition, following this answer, I changed my
~/.profile to inherit from fish shell
# Paths if [ -x "/usr/bin/fish" ]; then PATH="$(/usr/bin/fish -c 'echo $PATH')" else # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi PATH="$PATH:$HOME/.local/bin" fi
I tested this script out in bash and apparently
$PATH isn't persistent after the script ends.
My shell in
~/.vimrc is set to bash