[snap] fix -> not informing the env vars during the launch process

This commit is contained in:
Vinicius Moreira
2020-08-20 14:32:06 -03:00
parent 3691a2162c
commit a8eb6dca72

View File

@@ -225,7 +225,7 @@ def run(app: SnapApplication, logger: logging.Logger):
if command:
logger.info("Running '{}'".format(command))
subprocess.Popen('{} run {}'.format(BASE_CMD, command), shell=True)
subprocess.Popen(['{} run {}'.format(BASE_CMD, command)], shell=True, env={**os.environ})
return
logger.error("No valid command found for '{}'".format(app_name))