-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
Birdtray hard codes a default path #291745
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/birdtray-path-of-thunderbird/40319/3 |
If you've added thunderbird to |
Jep, thx. that worked. |
Ideally the package should manage this e.g. via |
That's only going to set the default, and will become wrong if the thunderbird storepath changes, because the config will not update even if the default does. |
I see, you’re pointing out that the default is copied to a stateful configuration file rather than merely used as a fallback. |
Yes, and the copying only happens if the config file doesn't already exist. I'm inclined to say that upstream should consider reading from PATH, or provide the capability to do so. |
Why don't we patch https://github.com/gyunaev/birdtray/blob/00110c50398cbae4d6da4521ccbf5d7166eac670/src/utils.cpp#L207? Replace the path with |
As said above, that will only affect the default path to thunderbird. That would break as soon as thunderbird updates and the config file points to a nonexistent binary. If any patching were to be done, it would have to be done in |
What if there was a fork of birdtray for nix users that don't want to customize the binary path and just let nix handle it? Wouldn't that work? |
what about a check for whether the system is nix or not? would that work? |
in this case, another if statement in the code |
Now that upstream has made a fix, I've created a PR to pull in that commit. Please give the PR #327363 a test and let me know if it works as expected. |
@eclairevoyant thanks! I am not sure, if it works for me. I can make birdtray start thunderbird and the birdtray log shows an unread message for an inbox as it should. However other than the log and startup, it doesn't seem connected. It shows a red cross as if it was not connected and doesn't show unread counter or quits thunderbird when is quit itself. |
Fair, I don't really use birdtray, so I don't know how it works, just made a best-effort attempt. |
@ddogfoodd I just got birdtray working on NixOS myself. I had the issue in this thread, which I fixed by changing The reason I mention this is that it sounds like the fix above might actually have worked, but it still seems buggy to you because you're also experiencing the wayland bug. Also tagging @eclairevoyant . |
Unsubscribing as I don't use birdtray. |
How come it couldn't be patched just by setting |
Birdtray hard codes a default path
Steps to reproduce the behavior:
Expected behavior
If you leave it as it is Birdtray tries to start Thunderbird with "/usr/bin/thunderbird"
If you change that to "thunderbird" and launch birdtray it tries to launch "home/user/thunderbird"
Screenshots
Notify maintainers
@Flakebi
The text was updated successfully, but these errors were encountered: