-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Initial notification icon support #710
Conversation
As icon locations are platform dependent, iterate through paths & add to notifications
Doesn't resources/128x128.png always exist regardless of system? |
In my testing a relative path to This could be rewritten to search for the icon - though I find that to likely be less efficient than a handful of hardcoded locations. Sometimes it's upscayl.png, others 128x128.png, sometimes can use relative path, other times can't.... so in addition to efficiency I think reliability also reduced performing a lookup for it. edit: more info |
Maybe it has to be a ./? I currently don't have access to my Arch laptop so I can't test it yet |
You mean as below?
As much as i'd love that simplicity to be true, confirming this doesn't work for AppImage (and I suspect others). |
Hmm, maybe it's only an AppImage thing? AppImage/AppImageKit#1035 I'd suspect the |
There very well may be an appimage variable or some such to the icon however confirming that Can confirm the deb/rpm work simply with Windows I believe does use So this justifies my thought process in hardcoding a handful of paths, while not my favorite bit of code it oddly seems the simplest and can't imagine these paths changing anytime soon. The flatpak and mac builds i'm curious about, would appreciate feedback from someone who can test these. |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still working on this, please reply to indicate so. |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still working on this, please reply to indicate so. |
So would appreciate some input on this; I've confirmed this PR works on majority of builds - even if it didn't work, for eg., on the mac build the notification would still show same as without the PR. |
The PR was in draft, I thought you were still working on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! We just need to update one thing :)
Just hoped someone could test it for mac/flatpak :) |
Continuing discussion in b2a3e54 |
As icon locations are platform dependent, iterate through paths & add to notification util.
Confirmed working well for linux(deb/rpm), AppImage & Windows platforms.
Todo:
@aaronliu0130 appreciate if you're able to test.
Before and after shots:
Linux notifications:
(bottom before, top after)
Windows:
Win.