Repository navigation
Description
Nixpkgs version
- Stable (26.05)
Describe the bug
After a routine nixos-26.05 update, Firefox renders no text in its chrome UI —
tab titles, toolbar, and menus are blank — while web page content renders
text normally. Thunderbird (which seems to share the Firefox wrapper) is affected the
same way: menus, folder pane, and dialog text are blank.
I'm on KDE Plasma 6 (Wayland).
Steps to reproduce
- On KDE Plasma (Wayland),
nixos-26.05, update nixpkgs to a revision that
includes the recentfirefox/wrapperchanges. - Launch Firefox (or Thunderbird).
- Observe: chrome/UI text is blank; web page content still shows text.
Expected behaviour
Firefox and Thunderbird should render text correctly without having to setup environment variables.
Screenshots
No response
Relevant log output
Additional context
What I found
firefox-unwrappedis byte-identical across the working and broken revisions;
only the wrapper differs.- In the working build, the Firefox wrapper adds
gsettings-desktop-schemas
andgtk3gsettings-schemas toXDG_DATA_DIRS. In the broken build, those
entries are gone from the wrapper. - My Plasma session does not provide those schemas on
XDG_DATA_DIRSotherwise,
so on this setup they only ever reached the app via the wrapper. - Manually adding those two schema directories back to
XDG_DATA_DIRSwhen
launching the broken build makes the UI text render correctly again (tested
for both Firefox and Thunderbird).
I noticed the commit firefox/wrapper: enable strictDeps
(#540042, backported in #545437) landed in the update window that introduced
this for me. I'm not certain it's the cause, but it seemed possibly related
since it changes how the wrapper's dependencies are handled.
Workaround
Providing the schemas at the session level restores the text. On NixOS:
environment.sessionVariables.XDG_DATA_DIRS = [
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
];AI disclosure
AI help was used in troubleshooting and creating a workaround, but a real human (me) is filing this issue.
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.18.40, NixOS, 26.05 (Yarara), 26.05.20260725.f7a2e42 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.8 - nixpkgs:
/nix/store/xsgr0jkfd5115cvzvh5lqzjnv0bjvwwq-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Activity
DocBrown101 commentedon Jul 27, 2026
I can confirm that!
KDE Plasma 6 (Wayland)
udaykurien commentedon Jul 27, 2026
I confirm this. I've observed this after the latest update (26.05.20260724.597283a → 26.05.20260725.f7a2e42).
jdannenberg commentedon Jul 27, 2026
I can confirm the issue.
I can't confirm that. safe mode does not work for me.
I can confirm that the commit before #545437 (I'm also on nixos-26.05) works, so adding an overlay for firefox and firefox-unwrapped to
a3b975b22c917516129ccdae0d50336ba6cfbf41works.nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/a3b975b22c917516129ccdae0d50336ba6cfbf41.tar.gz -p firefoxworks not (edit) for me. EDIT: This only works if overlay is in place, being on nixos-26.05 and trying this also has text missing.
Thank you for noticing @drzero42 ; initially I downgraded to 152.0.6 which also worked.
What also works is
MOZ_ENABLE_WAYLAND=0 firefoxif that helps.ryand56 commentedon Jul 27, 2026
I can replicate this using Thunderbird on Niri.
jasigal commentedon Jul 27, 2026
@drzero42 thanks for the quick report, the snippet you provided as a workaround worked for me!
There seems to be a formatting issue after the snippet, I don't think the @'s to the maintainers worked as they're in a markdown block.
drzero42 commentedon Jul 27, 2026
Yeah, I missing ending the code block. Fixed it now :)
nixos-discourse commentedon Jul 27, 2026
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/thunderbird-firefox-polices-issue/79190/2
booxter commentedon Jul 27, 2026
Two venues to fix this:
firefox/wrapper: inject gsettings schema paths into XDG_DATA_DIRS
emptyynes commentedon Jul 27, 2026
Having the same issue on KDE, safe mode not fixing, but running
MOZ_ENABLE_WAYLAND=0 firefoxmakes it work fineARitz-Cracker commentedon Jul 27, 2026
can confirm this workaround works
sakuumomo commentedon Jul 28, 2026
Confirmed on my machine.
ncaq commentedon Jul 28, 2026
My workaround.
1 remaining item
AchmadFathoni commentedon Jul 28, 2026
Just curious, can a test catch this kind of regression?
booxter commentedon Jul 28, 2026
@AchmadFathoni Good question. In theory yes.
We have some NixOS tests for Firefox that OCR the screen - those would probably fail in this scenario because OCR check would expect particular text on the screen - which, as I understood, was not shown at all. The problem is, those tests are all X11 based - which was not affected here. We could probably expand the test suite to cover both Wayland and X11. Someone gotta do the work.
firefox/wrapper: inject gsettings schema paths into XDG_DATA_DIRS
chore: update nixpkgs input to pending build
isti115 commentedon Jul 30, 2026
@ARitz-Cracker Please forgive my limited / surface level understanding of this, but shouldn't something like the following work as well in a
shell.nixfile?Interestingly enough the environmental variable doesn't seem to change at all using the above, which I can work around by setting it in a
shellHookinstead, but that doesn't solve the original issue of the missing text for me either.vacy commentedon Jul 30, 2026
#546288 just arrived on my system and its resolved.
booxter commentedon Jul 30, 2026
@vacy Thanks for confirming it resolved the issue! I will close it now. If there are still some issues with the latest version, consider creating a new bug report.
obadz commentedon Jul 30, 2026
Just to flag that I experienced Firefox crashes on Xorg/i3 (not the UI defects mentioned by others) with this bug. Many "file upload" web features triggered an irrecoverable crash, for instance right click->File Upload on Google Drive triggered the below window.
I have confirmed this was fixed by bffe6b0
ARitz-Cracker commentedon Jul 30, 2026
@isti115
Looking at the function docs and its source, seems like all the
makeSearchPathfunction does isnullentries in the array/, plus the first arg (in your case"share") with everything in the second arg[ pkgs.gsettings-desktop-schemas pkgs.gtk3 ]to[ "${pkgs.gsettings-desktop-schemas}/share" "${pkgs.gtk3}/share" ]":""${pkgs.gsettings-desktop-schemas}/share:${pkgs.gtk3}/share"So your first example, you're effectively doing
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share:${pkgs.gtk3}/share"which clearly isn't the same thing.n0099 commentedon Jul 30, 2026
https://noogle.dev/f/lib/makeSearchPath/
nixpkgs/lib/strings.nix
Lines 534 to 569 in 6e90d09
isti115 commentedon Jul 30, 2026
@ARitz-Cracker @n0099 Thank you very much for the responses! Yes, I get that, but with the first example the content of the paths wasn't the issue, as I didn't even get as far as modifying the environmental variable. If I renamed it to something else (e.g.
XDG_DAATAA_DIRS), it was visible in the created shell, but with the original name the override had no effect, seemingly as if it was overridden by an even higher level override. In my second example above with theshellHookI have used the correct paths and they appeared inenv, but when I launched Firefox, the text from the browser's UI elements was still missing.PS. Is it fine if I ask such follow-up questions in the thread of this closed issue, or should we move this into a discussion / onto the discourse forum?
booxter commentedon Jul 30, 2026
Please move this discussion somewhere else, a lot of people are subscribed and don't need to see these notifications.