Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[linux] Failed to load the image path for the tray icon #1

Closed
micalevisk opened this issue Jul 9, 2021 · 1 comment
Closed

[linux] Failed to load the image path for the tray icon #1

micalevisk opened this issue Jul 9, 2021 · 1 comment
Assignees
Labels

Comments

@micalevisk
Copy link

Hi! somehow the statement bellow doesn't work (in development) in my Ubuntu 20.04.2

tray = new Tray(iconPath)

(node:1085748) UnhandledPromiseRejectionWarning: Error: Failed to load image from path 'xx/muffon/public/icon.ico'
    at createTrayOrDock (xx/muffon/electron.js:126:12)
    at setup (xx/muffon/electron.js:166:3)
(Use `electron --trace-warnings ...` to show where the warning was created)

Note that xx/muffon/public/icon.ico exists

public/
├── foo.jpg # I added this one
├── icon.icns
├── icon.ico
├── index.html
├── installerSidebar.bmp
└── license.txt

Changing the iconPath to load foo.jpg instead of icon.ico, everything works.


When I tested the 0.1.0-alpha.8 the error is TypeError: Cannot read property 'setToolTip' of null, which I think is triggered by this line:

tray.setToolTip(value)

@staniel359 staniel359 self-assigned this Jul 9, 2021
@staniel359 staniel359 added the bug label Jul 9, 2021
@staniel359
Copy link
Owner

@micalevisk Thanks for the hint. It will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants