Commits

Vladimir Kolev  committed 1701920

Fixed Appindicator icon loading when no gsharkdown folder in /usr/share/pixmaps

  • Participants
  • Parent commits cc74c69

Comments (0)

Files changed (2)

File data/love_song.svg

Added
New image

File lib/guihelpers.py

         so we can access the gSharkDown methods.
         """
         if HAVE_INDICATOR == True:
+            if os.path.exists('/usr/share/pixmaps/gsharkdown'):
+                icons_path = '/usr/share/pixmaps/gsharkdown'
+            else:
+                icons_path = "%s/_pixmaps/gsharkdown" % BASEPATH
             self.ind = appindicator.Indicator("gsharkdown-client",
                                     "gsharkdown-messages",
                                     appindicator.CATEGORY_APPLICATION_STATUS,
-                                    '/usr/share/pixmaps/gsharkdown')
+                                    icons_path)
             self.ind.set_status(appindicator.STATUS_ACTIVE)
             self.ind.set_attention_icon("gsharkdown_16_playing")
             self.ind.set_icon("gsharkdown_16")