diff options
author | m0sia <m0sia@m0sia.ru> | 2013-12-28 01:46:31 -0800 |
---|---|---|
committer | m0sia <m0sia@m0sia.ru> | 2013-12-28 01:46:31 -0800 |
commit | f40b81b47f387a7553f7b03c268567b6d9ebac79 (patch) | |
tree | e578a8a9e88f60a7ece1166bb5b78ca7f4d5e903 | |
parent | 9afe09f095d83d9ce9c8fa170771e84d9969db23 (diff) | |
parent | ef86299ee5fa19b4f1a9d7f0ca657fc3042e58d1 (diff) | |
download | pyParrotZikTCP-f40b81b47f387a7553f7b03c268567b6d9ebac79.tar.xz pyParrotZikTCP-f40b81b47f387a7553f7b03c268567b6d9ebac79.zip |
Merge pull request #1 from MartinPaulEve/fixicon
Add second option for icon paths on Linux
Diffstat (limited to '')
-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() |