diff options
author | Dmitry Moiseev <m0sia@m0sia.ru> | 2014-01-09 01:01:55 -0800 |
---|---|---|
committer | Dmitry Moiseev <m0sia@m0sia.ru> | 2014-01-09 01:01:55 -0800 |
commit | 7a0b14cd97a3df31d7b3e6d26e52e19c181c3162 (patch) | |
tree | 3d849202f1eae074a4ac90c9a7d2a062f05b2e09 | |
parent | 5be0b8a535f5aaffef7da65b03aafe03c4f06351 (diff) | |
parent | f40b81b47f387a7553f7b03c268567b6d9ebac79 (diff) | |
download | pyParrotZikTCP-7a0b14cd97a3df31d7b3e6d26e52e19c181c3162.tar.xz pyParrotZikTCP-7a0b14cd97a3df31d7b3e6d26e52e19c181c3162.zip |
Merge branch 'master' of https://github.com/m0sia/pyParrotZik
-rw-r--r-- | SysIndicator.py | 4 |
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() |