Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dziallas <sebastian@when.com>2010-06-25 12:45:01 (GMT)
committer Sebastian Dziallas <sebastian@when.com>2010-06-25 12:45:01 (GMT)
commit502a40d20e4c5097f08cb9a536c18c3769d59495 (patch)
treec956e41303628f304f5587cda65f40d8e90c5ffe
parent1258a0c1db3b60f4c4f1ad23f77eb70072a1e337 (diff)
only show up if smolt is actually installed
-rw-r--r--extensions/cpsection/smolt/__init__.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/cpsection/smolt/__init__.py b/extensions/cpsection/smolt/__init__.py
index d1c0327..b7efd8a 100644
--- a/extensions/cpsection/smolt/__init__.py
+++ b/extensions/cpsection/smolt/__init__.py
@@ -14,11 +14,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+from os import path
from gettext import gettext as _
-CLASS = 'smolt'
-ICON = 'module-smolt'
-TITLE = _('Hardware Profile')
-
-
-
+if path.exists('/usr/bin/smoltSendProfile'):
+ CLASS = 'smolt'
+ ICON = 'module-smolt'
+ TITLE = _('Hardware Profile')