diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2018-08-21 12:24:12 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2018-08-21 12:24:12 +1200 |
commit | 1382de7fe2a59265feca3ade6391230fc059524d (patch) | |
tree | 519abd5820916790bf394f67db4372291b00da14 /tests/src | |
parent | 0d3fda2a3d7077a89e1985908ebf5442ae7ef009 (diff) | |
download | lightdm-git-1382de7fe2a59265feca3ade6391230fc059524d.tar.gz |
Set XDG_SEAT env variable in script hooks
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/test-script-hook.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/test-script-hook.c b/tests/src/test-script-hook.c index 534fcd89..56c43ef6 100644 --- a/tests/src/test-script-hook.c +++ b/tests/src/test-script-hook.c @@ -26,6 +26,8 @@ main (int argc, char **argv) g_autoptr(GString) status_text = g_string_new ("SCRIPT-HOOK"); g_string_append_printf (status_text, " %s", argv[1]); + if (g_getenv ("XDG_SEAT")) + g_string_append_printf (status_text, " XDG_SEAT=%s", g_getenv ("XDG_SEAT")); if (g_getenv ("USER")) g_string_append_printf (status_text, " USER=%s", g_getenv ("USER")); status_notify ("%s", status_text->str); |