-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add tray_icon_path to config to allow overriding tray icon #396
Conversation
|
f237216
to
0f385e7
Compare
0f385e7
to
1d23623
Compare
OT but since there is no issue tracker on this repo to file a meta issue: the |
1d23623
to
f4aca16
Compare
Tested that it works fine to use a path from the local filesystem by editing |
The tray icon gets overridden by the app favicon when you get a notification, so this would cause your icon to flicker between custom and element, no? |
@3nprob what OS did you test on? We only don't use the favicon override on macOS, where the OS has stable notification bubble count support so we can skip it |
@t3chguy Linux(Wayland). No flicker noticed yet. |
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.
I actually looked up this repo specifically to see if there were any open issues about this, very happy to see it added. Would this support svgs?
That probably depends on your OS, Electron docs don't specify other than a recommendation to use |
f4aca16
to
2845c46
Compare
33fe2f1
to
849d894
Compare
Hmm, with the new changes forcing filetype per platform no, svgs won't wok anymore even if supported. Is the platform-detection functionality for manual icons that vital @turt2live ? |
Well, it needs to work on all the platforms. Windows wants an ico, so we should be giving it an ico. |
Product team: Do we want to support this feature? (assuming it can be made to work when the user receives a notification) |
Could this be addressed in a separate issue perhaps? I can't seem to reproduce this yet (ie for me, the icon is always shown to the user-configured one, notifications or not, no flickering). Been running this in 3 concurrent instances for the past week fwiw. |
It would need solving for us to feel comfortable landing this PR, so I don't think it can be safely broken out to another issue, sorry. Some platforms might magically work but it would need extensive testing on all platforms we provide direct support for. |
@turt2live All right, let's hope someone else can help with this. I'm surprised this isn't considered prioritized considered element-hq/element-web#2320 is still highly relevant (most commented and upvoted issue ever and it's not getting better over time). The fix in this PR takes the one proposed workaround (profiles) from a painful hack (which it becomes when combined with the fact that frequent client freezes from other issues forces force-closes, which makes it a russian roulette on which tray icon to close each time) to actually usable. This one issue is enough of a pain-point that it's hurting the organizational buy-in on the whole Matrix adaptation. In lack of another suitable client and support for this we'll probably have to start maintaining a fork, which I don't look forward to. |
Multiple accounts is indeed something we'd like to support one day. In the meantime, we require that features be complete in order to reduce maintenance burden of the app. |
So @t3chguy is saying "We only don't use the favicon override on macOS, where the OS has stable notification bubble count support so we can skip it". Can we confirm which scenerios/platforms trigger the flickering and what changes are needed? I'd at least like to figure out if this is a Windows-only issue or if there is any way for me to reproduce it |
cd3c47e
to
3aa5416
Compare
3aa5416
to
1f51e59
Compare
There is now a check that disabled the webview-sourced icon override (that is, making non-mac platforms behave like mac) in case the tray icon has been explicitly configured. With the default, the previous behavior is retained. |
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.
Please avoid force pushes after initial review has been given - it makes it much harder to review the code.
I would also suggest holding off on writing too much code before the Product team has a look. There's a chance that they will not approve the feature (which is why we're asking for their review), and we'd rather not have to throw away too much code.
Hm, I thought I had done my prework here but I guess I must have misinterpreted something. #774 is Triaged (which I take to indicate that it's at least not been closed as "irrelevant"/"wontmerge"), recently enough that I think it's reasonable to assume it's not a remnant of past dreams. element-hq/element-web#4745 is accepted and AFAICT all parts of it but this has already been implemented and exposed in user-accessible ways. Where can one read up to better understand the decision-making process when deciding what features can be considered for merging into the |
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.
I'll re-review this after Product takes a look.
This PR already has more comments than it honestly needs to: let's take process discussion to #element-dev:matrix.org on Matrix please.
3nprob seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
So you see your custom icon with the numbered dot in the corner when a notification is shown? If not then likely your notification settings are such that this won't happen but with default settings it would at least for mentions/replies. |
We had a similar change land grayscale icons on Linux and it suffered from the same issue. We are willing to accept this change without explicit Product sign-off if it was free of the same bug. Closing for now, but you can continue to iterate on that branch and let us know when the issue is fixed (it'll need a companion Element Web PR as that's where the notification dot overlay is generated) |
Checklist
Adds new config entry
tray_icon_path
, allowing the user to override the tray icon with their own.This resolves #774
Use-cases:
Also minor fix in removing redundant global variable
iconPath
.Type: enhancement
Here's what your changelog entry will look like:
✨ Features
Type: enhancement