DISPLAY is not :0 for me today

This commit is contained in:
Michael Hudson-Doyle 2023-03-23 16:42:39 +13:00
parent fb3361918e
commit 70fcf15b5e
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ class TestInputSource(unittest.IsolatedAsyncioTestCase):
]
cmd = [
'systemd-run', '--wait', '--uid=99',
'--setenv=DISPLAY=:0', '--setenv=XDG_RUNTIME_DIR=/run/user/99',
f'--setenv=DISPLAY={os.environ.get("DISPLAY", ":0")}',
'--setenv=XDG_RUNTIME_DIR=/run/user/99',
'--setenv=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/99/bus',
'--', *gsettings
]