mirror of https://github.com/captn3m0/hackertray
image: correct declaration + usage
- Declaration: setup.py declares the image a 'hackertray' data, gives its location and asks its inclusion - appindicator looks for the picture in folders near itself, instead of /usr/bin (near the main executable) or the first entry of path.pull/7/head
parent
73aa49812e
commit
a11f7c4507
|
@ -25,8 +25,8 @@ STATUS_ATTENTION = 1
|
|||
|
||||
# Locations to search for the given icon
|
||||
search_locations = [ os.path.join(os.path.dirname(sys.executable), "images"),
|
||||
os.path.join(os.path.dirname(sys.path[0]), "images"),
|
||||
os.path.join(os.path.dirname(sys.path[0]), "../images"),
|
||||
os.path.join(os.path.dirname(__file__), "images"),
|
||||
os.path.join(os.path.dirname(__file__), "../images"),
|
||||
'/usr/share/pixmaps' ]
|
||||
|
||||
def get_icon_filename(icon_name):
|
||||
|
|
Loading…
Reference in New Issue