Code Monkey home page Code Monkey logo

Comments (6)

miranda avatar miranda commented on June 9, 2024

I discovered this also happens from running Discord, another Electron app. I replaced my Discord package with one that uses the Electron 29 package on my system, and it also no longer deletes my fonts.

So, more evidence that this bug will hopefully go away if Caprine is changed to use Electron 29.

from caprine.

mquevill avatar mquevill commented on June 9, 2024

The newest release (v2.60.1) uses Electron 29. Can you test with the AppImage install from v2.60.1?

from caprine.

miranda avatar miranda commented on June 9, 2024

The newest release (v2.60.1) uses Electron 29. Can you test with the AppImage install from v2.60.1?

Oh god... the AppImage still deletes my fonts upon launch!!!

Caprine must be doing something different than other apps using Electron 29 then?
Is there anything I can do to help determine why it's doing this?

from caprine.

miranda avatar miranda commented on June 9, 2024

Someone really needs to get to the bottom of this. It seems like Electron still does this, but only for some apps, like Caprine obviously. I've found more that do it.

The only way I could stop this without banning all Electron apps from my system was to set up firejail for the offending apps and block them from altering my home directory.

from caprine.

miranda avatar miranda commented on June 9, 2024

Ok, so I spent a lot of time trying to figure this out. I think it may actually be fixed, but not in Electron 29. I am not sure why some Electron apps using 29 did not seem to trigger the bug. But I set up VS Code and built Caprine using the the 29 that was in package.json, and the resulting app deleted my fonts. However, by simply modifying package.json it to use Electron 30.0.1, the font deletion stopped.

I'm not 100% sure this bug isn't still in Electron and able to be triggered a different way... but so far I've not seen any evidence of that. Since there's not really been any acknowledgement of the bug, there's no way to know for sure. But so far, so good.

Anyway, with all that said... it seems the problem will be gone once the Linux builds are updated. I'd attach mine but they are too big to be allowed here.

from caprine.

mquevill avatar mquevill commented on June 9, 2024

There's nothing specific that Caprine does to the font cache storage as far as I'm aware. I tried to track down some information regarding this issue, but couldn't find anything conclusive. One thing that I gathered is that .bcf and .pcf fonts aren't supported as well as .otb format fonts on Linux systems.

If this is confirmed to be fixed with Electron 30, then eventual upgrades would address this issue. I'm not fully convinced that v30 will completely solve this issue. For now, I'll leave it as waiting on the issue you raised in the Electron repo: electron/electron#41971

from caprine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.