Vladimir Kolev avatar Vladimir Kolev committed 1701920

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

Comments (0)

Files changed (2)

Added
New image
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   version="1.0"
+   width="22"
+   height="22"
+   id="svg1">
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient2780">
+      <stop
+         id="stop2782"
+         style="stop-color:white;stop-opacity:1"
+         offset="0" />
+      <stop
+         id="stop2784"
+         style="stop-color:white;stop-opacity:0"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient6621">
+      <stop
+         id="stop6622"
+         style="stop-color:#f5a108;stop-opacity:0"
+         offset="0" />
+      <stop
+         id="stop6623"
+         style="stop-color:#fefdc3;stop-opacity:0.74251497"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       x1="22.819513"
+       y1="28.829224"
+       x2="12.849945"
+       y2="12.239423"
+       id="linearGradient7881"
+       xlink:href="#linearGradient6621"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.51288388,0,0,0.27020515,-0.07117882,0.745462)" />
+    <linearGradient
+       x1="24"
+       y1="5.0793009"
+       x2="24"
+       y2="41.0793"
+       id="linearGradient2786"
+       xlink:href="#linearGradient2780"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.46199132,0,0,0.47517628,-0.1453971,-0.0416244)" />
+    <linearGradient
+       id="linearGradient3242">
+      <stop
+         id="stop3244"
+         style="stop-color:#f8b17e;stop-opacity:1"
+         offset="0" />
+      <stop
+         id="stop3246"
+         style="stop-color:#e35d4f;stop-opacity:1"
+         offset="0.31209752" />
+      <stop
+         id="stop3248"
+         style="stop-color:#c6262e;stop-opacity:1"
+         offset="0.57054454" />
+      <stop
+         id="stop3250"
+         style="stop-color:#690b54;stop-opacity:1"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient2490">
+      <stop
+         id="stop2492"
+         style="stop-color:#791235;stop-opacity:1"
+         offset="0" />
+      <stop
+         id="stop2494"
+         style="stop-color:#dd3b27;stop-opacity:1"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       x1="24"
+       y1="6"
+       x2="24"
+       y2="51"
+       id="linearGradient3853"
+       xlink:href="#linearGradient3242"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.48412903,0,0,0.49583931,-0.67625394,-1.5648492)" />
+    <linearGradient
+       x1="17"
+       y1="45"
+       x2="17"
+       y2="6"
+       id="linearGradient3861"
+       xlink:href="#linearGradient2490"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.48412903,0,0,0.49583931,-0.67625394,-1.5648492)" />
+  </defs>
+  <path
+     d="M 6.1196788,2.6498886 C 3.5209271,2.5189342 2.3102429,4.228039 1.6553565,5.8538921 1.005464,7.9949287 1.9241384,12.038843 6.4260775,11.731199 c 2.5678836,0 3.5885255,-2.695971 4.9399895,-3.39583 1.228227,-0.4754361 1.324894,-0.5179873 2.622535,-0.5179873 1.803318,0 5.064404,-1.3360822 5.064405,-2.6617875 C 18.498709,4.0917962 17.027123,2.1973368 14.32299,2.5202254 12.601699,2.7253207 10.973256,3.9849488 10.547883,4.6117437 9.505863,3.6708311 8.1753601,2.6498886 6.1196788,2.6498886 z"
+     id="path7876"
+     style="fill:url(#linearGradient7881);fill-opacity:1;fill-rule:evenodd;stroke:none" />
+  <path
+     d="M 10.863717,3.4920235 C 15.360634,-1.1117463 21.54045,3.1315676 21.499801,7.4976614 21.462639,11.489031 18.49125,13.400548 11.026318,20.5 3.2127816,13.895478 0.45979263,12.37245 0.50044263,7.6368239 0.54109273,2.7347325 5.8315367,-0.9443102 10.863717,3.4920235 z"
+     id="path920"
+     style="fill:url(#linearGradient3853);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient3861);stroke-width:0.99999976;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+  <path
+     d="M 6.8422215,2.5272974 C 6.4575952,2.4934316 6.074161,2.5019895 5.7161177,2.5569959 3.3270639,2.9240282 1.5226739,5.1663941 1.5004469,7.8581818 1.4819607,10.020918 2.0346951,11.329037 3.5649706,12.996025 5.0397732,14.602583 7.4985963,16.527249 11.014581,19.5 c 3.364635,-3.199595 5.785066,-5.34228 7.2908,-7.0237 C 19.867939,10.731429 20.483356,9.502653 20.49984,7.7245377 20.51684,5.8915484 19.179039,3.967072 17.338087,3.0618707 15.497135,2.1566694 13.23668,2.202742 11.231139,4.2646606 A 0.51813698,0.53292432 0 0 1 10.538153,4.294359 C 9.255511,3.1587877 7.9961014,2.6288946 6.8422215,2.5272974 z"
+     id="path2778"
+     style="opacity:0.4;fill:none;stroke:url(#linearGradient2786);stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+</svg>

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")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.