aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2015-03-27 16:52:12 -0400
committerAdam Stokes <adam.stokes@ubuntu.com>2015-03-30 09:31:57 -0400
commitde58e4ef2bc1300d797d5da9fbdadb3368d4ef3b (patch)
treedf7f8491bac1c8ef891a38c000dcc1816c1ea978
parenta087fbe9d06a22cda3c5bf4cf7164a2fa9805df4 (diff)
downloadsos-de58e4ef2bc1300d797d5da9fbdadb3368d4ef3b.tar.gz
[unity] new plugin to collect unity-support-status
This plugin is for Ubuntu's Unity DE and just collects 3d support information similar to a simplified glxinfo. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r--sos/plugins/unity.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/sos/plugins/unity.py b/sos/plugins/unity.py
new file mode 100644
index 00000000..26aee013
--- /dev/null
+++ b/sos/plugins/unity.py
@@ -0,0 +1,33 @@
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, UbuntuPlugin
+
+
+class unity(Plugin, UbuntuPlugin):
+ """Unity
+ """
+
+ plugin_name = 'unity'
+ profiles = ('hardware', 'desktop')
+
+ packages = (
+ 'nux-tools',
+ 'unity'
+ )
+
+ def setup(self):
+ self.add_cmd_output("/usr/lib/nux/unity_support_test -p")
+
+# vim: et ts=4 sw=4