aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SysIndicator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/SysIndicator.py b/SysIndicator.py
index 3d7adce..6f68018 100644
--- a/SysIndicator.py
+++ b/SysIndicator.py
@@ -16,6 +16,8 @@ class SysIndicator:
self.menu = menu.gtk_menu
import appindicator
self.icon_directory = os.path.sep + 'usr' + os.path.sep+ 'share' + os.path.sep+'icons' + os.path.sep+'zik'+ os.path.sep
+ if not os.path.isdir(self.icon_directory):
+ self.icon_directory = os.path.dirname(sys.argv[0]) + os.path.sep + 'share' + os.path.sep+'icons' + os.path.sep+'zik'+ os.path.sep
self.statusicon = appindicator.Indicator("new-parrotzik-indicator",
"indicator-messages",
appindicator.CATEGORY_APPLICATION_STATUS)
@@ -134,4 +136,4 @@ if __name__ == "__main__":
menu.append(info_item)
indicator = SysIndicator(icon = "audio-headset",menu = menu)
- indicator.main() \ No newline at end of file
+ indicator.main()