diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index dc8fdec..7e899e5 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -353,13 +353,16 @@ class ApplicationLauncher( easyButton ): self.show() return True - def strip_accents(self, string): - import unicodedata - try: - value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore') - except: - value = string - return value + def strip_accents(self, string): + if isinstance(string, unicode): + return string + else: + import unicodedata + try: + value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore') + except: + value = string + return value def getTooltip( self ): tooltip = self.appName