From 1ecc428854bdbfa9dc7f204afa6e2bf31c935629 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 8 Oct 2016 04:36:11 +0200 Subject: [PATCH] run_vim.sh: use explicit HOME in /tmp This is required for Neovim to suppress errors that it cannot write to ~/.local etc. --- scripts/run_vim.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run_vim.sh b/scripts/run_vim.sh index 1f3edea..6a129f5 100644 --- a/scripts/run_vim.sh +++ b/scripts/run_vim.sh @@ -21,4 +21,5 @@ done # Run as the vimtest user. This is not really for security. It is for running # Vim as a user that's unable to write to your volume. -exec su -l vimtest -c "cd /testplugin && /vim-build/bin/$BIN $ARGS" +cd /testplugin || exit +exec su -l vimtest -c "env HOME=/tmp/vimtestbed-home /vim-build/bin/$BIN $ARGS"