forked from LBRYCommunity/lbry-sdk
Fix for icon path when running shortcut
This commit is contained in:
parent
5bfb067d0f
commit
84d340382b
1 changed files with 4 additions and 1 deletions
|
@ -256,7 +256,10 @@ def main():
|
|||
def stop(sysTrayIcon):
|
||||
replyToApplicationShouldTerminate_()
|
||||
|
||||
icon = os.path.join(ICON_PATH, 'lbry16.ico')
|
||||
if getattr(sys, 'frozen', False) and os.name == "nt":
|
||||
icon = os.path.join(os.path.dirname(sys.executable), ICON_PATH, 'lbry16.ico')
|
||||
else:
|
||||
icon = os.path.join(ICON_PATH, 'lbry16.ico')
|
||||
hover_text = APP_NAME
|
||||
menu_options = (('Open', icon, openui_),)
|
||||
|
||||
|
|
Loading…
Reference in a new issue