mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[snap] fix -> not informing the env vars during the launch process
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user