From 502a40d20e4c5097f08cb9a536c18c3769d59495 Mon Sep 17 00:00:00 2001 From: Sebastian Dziallas Date: Fri, 25 Jun 2010 12:45:01 +0000 Subject: only show up if smolt is actually installed --- 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') -- cgit v0.9.1