fix(keyringctl): set HOME, PATH, LANG required for hokey
This effectively requires en_US.UTF-8 to be an available lang, which is a relative fair requirement and mandatory to set for hokey.
This commit is contained in:
parent
f74a1be1ac
commit
2030de06a0
@ -4,6 +4,7 @@ from collections.abc import Iterable
|
|||||||
from collections.abc import Iterator
|
from collections.abc import Iterator
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from os import chdir
|
from os import chdir
|
||||||
|
from os import environ
|
||||||
from os import getcwd
|
from os import getcwd
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from re import split
|
from re import split
|
||||||
@ -110,7 +111,7 @@ def system(
|
|||||||
The output of cmd
|
The output of cmd
|
||||||
"""
|
"""
|
||||||
if not env:
|
if not env:
|
||||||
env = {}
|
env = {"HOME": environ["HOME"], "PATH": environ["PATH"], "LANG": "en_US.UTF-8"}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return check_output(cmd, stderr=STDOUT, stdin=_stdin, env=env).decode()
|
return check_output(cmd, stderr=STDOUT, stdin=_stdin, env=env).decode()
|
||||||
|
Loading…
Reference in New Issue
Block a user