aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-05-16 11:23:38 -0400
committerPavel Moravec <pmoravec@redhat.com>2019-08-25 10:36:58 +0200
commit8b04034fe735347b563d5a5fda58857f4b665803 (patch)
tree2120b946749cf7aeb4d68c8af03045483ba8b201
parent447eab7ea4ff1ef9aa1692f4b66b2ec96b1633f7 (diff)
downloadsos-8b04034fe735347b563d5a5fda58857f4b665803.tar.gz
[qt] Add New Plugin
Adds a new plugin for Qt. Currently, this plugin only collects relevant environment variables and activates/verifies on the 'qt' package on Red Hat family distributions. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/qt.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/sos/plugins/qt.py b/sos/plugins/qt.py
new file mode 100644
index 00000000..f35cd21b
--- /dev/null
+++ b/sos/plugins/qt.py
@@ -0,0 +1,29 @@
+# Copyright (C) 2019 Red Hat, Inc. Jake Hunsaker <jhunsake@redhat.com>
+
+# This file is part of the sos project: https://github.com/sosreport/sos
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions of
+# version 2 of the GNU General Public License.
+#
+# See the LICENSE file in the source distribution for further information.
+
+from sos.plugins import Plugin, RedHatPlugin
+
+
+class Qt(Plugin, RedHatPlugin):
+ '''QT widget toolkit'''
+
+ plugin_name = 'qt'
+ packages = ('qt', )
+
+ def setup(self):
+ self.add_env_var([
+ 'QT_IM_MODULE',
+ 'QTDIR',
+ 'QTLIB',
+ 'QT_PLUGIN_PATH',
+ 'IMSETTINGS_MODULE'
+ ])
+
+# vim: set et ts=4 sw=4 :