diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-09-27 14:38:20 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-09-27 14:40:35 +0200 |
commit | ede513764ffcf3cd86e57a7ef1b066b6cc5de3ac (patch) | |
tree | e07706e31c448679d8d7a9327e30c67affa57ea6 | |
parent | 4e44a4b601965dd8ca0d00518acb211900551d83 (diff) |
linux_bundle: Minor fixes in temporary file handling in AppRun shell env
-rw-r--r-- | cerbero/packages/linux_bundle.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cerbero/packages/linux_bundle.py b/cerbero/packages/linux_bundle.py index c5c3c026..888ec25c 100644 --- a/cerbero/packages/linux_bundle.py +++ b/cerbero/packages/linux_bundle.py @@ -49,15 +49,16 @@ if test -z ${APP_IMAGE_TEST}; then ${APPDIR}/%(executable_path)s $* else if [ $SHELL = "/bin/zsh" ]; then - export ZDOTDIR=$MYPITIVI/.zdotdir + export ZDOTDIR=$(mktemp -d) mkdir -p $ZDOTDIR cp ~/.zshrc $ZDOTDIR echo "autoload -Uz bashcompinit; bashcompinit" >> $ZDOTDIR/.zshrc echo "PROMPT=[%(appname)s]\ \$PROMPT" >> $ZDOTDIR/.zshrc zsh elif [ $SHELL = "/bin/bash" ]; then - RCFILE=$MYPITIVI/.bashrc + RCFILE=$(mktemp -d)/.bashrc cp ~/.bashrc $RCFILE + echo "" >> $RCFILE echo "export PS1=[%(appname)s]\ \$PS1" >> $RCFILE /bin/bash --rcfile $RCFILE else |