snapcraft: save env vars

This commit is contained in:
Dan Bungert 2022-06-13 11:39:06 -06:00
parent a44939e402
commit 74e118d735
1 changed files with 7 additions and 0 deletions

View File

@ -31,8 +31,15 @@ apps:
daemon: simple daemon: simple
restart-condition: always restart-condition: always
environment: environment:
# Save original values of environment variables, we want to restore them
# for the debug shell (LP: #1975629).
PYTHONPATH_ORIG: $PYTHONPATH
PATH_ORIG: $PATH
PYTHONIOENCODING_ORIG: $PYTHONIOENCODING
PYTHONIOENCODING: utf-8 PYTHONIOENCODING: utf-8
SUBIQUITY_ROOT_ORIG: $SUBIQUITY_ROOT
SUBIQUITY_ROOT: $SNAP SUBIQUITY_ROOT: $SNAP
PYTHON_ORIG: $PYTHON
PYTHON: $SNAP/usr/bin/python3.8 PYTHON: $SNAP/usr/bin/python3.8
os-prober: os-prober:
command: usr/bin/os-prober command: usr/bin/os-prober