diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2019-05-15 15:11:35 -0400 |
---|---|---|
committer | Pavel Moravec <pmoravec@redhat.com> | 2019-08-25 10:36:52 +0200 |
commit | e1f3d8aa3ccafdb0d7cb547a19bb270f17a22f35 (patch) | |
tree | 53ca7ed2379a6f0478534e9d4737ca15d3de54fc | |
parent | 5d4321e80e53bc74c50dccad317cca8c07acb1bf (diff) | |
download | sos-e1f3d8aa3ccafdb0d7cb547a19bb270f17a22f35.tar.gz |
[x11] Collect X related environment variables
Adds collection of XDG environment variables, as well as DISPLAY and
DESKTOP_SESSION.
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/x11.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sos/plugins/x11.py b/sos/plugins/x11.py index f85fcfdf..8322d877 100644 --- a/sos/plugins/x11.py +++ b/sos/plugins/x11.py @@ -36,4 +36,19 @@ class X11(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "xrandr --verbose" ]) + self.add_env_var([ + 'DISPLAY', + 'DESKTOP_SESSION', + 'XDG_SESSION_TYPE', + 'XDG_SESSION_DESKTOP', + 'XMODIFIERS', + 'XDG_CURRENT_DESKTOP', + 'XDG_SEAT', + 'XDG_RUNTIME_DIR', + 'XAUTHORITY', + 'XDG_SESSION_PATH', + 'XDG_SEAT_PATH', + 'XDG_SESSION_ID' + ]) + # vim: set et ts=4 sw=4 : |