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: fix qttranslations path #90585
Conversation
birdtray crashes not finding the translations without this fix
Thanks, builds and runs. |
I just tested on Without env:
With:
This is what the log shows (run with option
The log shows the same message for any locale. According to the issue I linked, this is the expected behavior without the patch. |
It doesn’t work on wayland anyway, neither with, nor without the patch :) Ah, I didn’t know about |
I just found out it does launch on wayland! Yeah, I'm not sure which translations are the problem, but this patch removes the error, so I guess it is needed? |
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.
Yeah, I'm not sure which translations are the problem, but this patch removes the error, so I guess it is needed?
I guess it could fix some translations then, so thanks again!
This likely enforces xwayland. |
Sorry everyone, I forgot to checkout a new branch. I'm still a bit new to this and learning! Rebased my commits and now it looks clean again... |
QLocale locale = QLocale::system(); | ||
bool success = loadTranslation( | ||
- qtTranslator, locale, "qt", {QLibraryInfo::location(QLibraryInfo::TranslationsPath)}); | ||
+ qtTranslator, locale, "qt", {QLatin1String("@qttranslations@/translations")}); |
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.
This works, however I was wondering if there was a more general way for qt?
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.
Not really, this is an unresolved issue.
QLocale locale = QLocale::system(); | ||
bool success = loadTranslation( | ||
- qtTranslator, locale, "qt", {QLibraryInfo::location(QLibraryInfo::TranslationsPath)}); | ||
+ qtTranslator, locale, "qt", {QLatin1String("@qttranslations@/translations")}); |
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.
Not really, this is an unresolved issue.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)