Skip to content
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

[Bug]: Most Electron apps delete all your bitmap fonts from your user font cache on Linux immediately upon startup. #41971

Open
3 tasks done
miranda opened this issue Apr 26, 2024 · 2 comments

Comments

@miranda
Copy link

miranda commented Apr 26, 2024

Preflight Checklist

Electron Version

30

What operating system are you using?

Other Linux

Operating System Version

Arch Linux

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I expect Electron to not violate my system and delete my installed fonts against my will.

Actual Behavior

Most, but not all, Electron apps wipe out all your bitmap fonts (bdf, pcf, etc) immediately upon starting them. Notable offenders: Discord, Cider, Caprine, Bitwarden, Zoho Mail Desktop

The version of Electron seems to not matter. It happens with everything from 26 through 30 from what I've been able to surmise.

You can restore your fonts by running fc-cache --force, but this happens every single time you start the electron app, therefore it is absolutely infuriating.

Testcase Gist URL

No response

Additional Information

The only way I have found to stop this from happening (besides banning all Electron apps) is to use firejail to restrict the apps from being able to affect your ~/.fonts directory.

@VerteDinde VerteDinde added the blocked/need-repro Needs a test case to reproduce the bug label Apr 26, 2024
@electron-issue-triage
Copy link

Hello @miranda. Thanks for reporting this and helping to make Electron better!

Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

@miranda
Copy link
Author

miranda commented Apr 26, 2024

Ok this may actually be fixed. I could not get it to happen with Electron Fiddle, so I cloned the Caprine repo and built it. It deleted my fonts but after I changed the Electron version in package.json from 29.0.1 to 30.0.1, the resulting build does not do it. Does anyone know if this bug has intentionally been addressed already? It seems that hardly anyone was aware of it because it's related to bitmap fonts that most people don't use anymore, and it didn't come up in the issues search.

Anyway if it pops back up again, a basic "hello world" Electron app made in Code with an Electron 29 dependency was triggering it immediately upon run. I can't get it to happen with 30.0.1 so hopefully it really is fixed!

It's hard to know what version of Electron some apps are actually using so I may have been mistaken when reporting this as still happening with Electron 30, but originally I thought it was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants