this post was submitted on 07 Sep 2023
27 points (93.5% liked)

Linux

48145 readers
837 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Is there any difference in cache files for Flatpaked Firefox and the normal one?

I have been using FanFicFare application for downloading Fanfiction stories as EPub from the main fanfiction websites. It works just fine for most of them, but there are now terrible problems with the biggest of them all, https://fanfiction.net, which is behind Cloudflare and generally inaccessible to scripts.

Therefore functionality has been added to script which with appropriate flags (-o use_browser_cache=true -o use_browser_cache_only=true) and when correctly configured it can “download” HTML pages from the Firefox (or Chrome) cache instead and stitch them together into EPub same as if the pages were downloaded from the Internet.

It all works perfectly fine with Firefox as packaged by major distributions (openSUSE in my case), but it doesn't work with Firefox installed from Flatpak. Is there any difference between the storage of cache in Flatpak Firefox? Is there some kind of access protection to its caches?

you are viewing a single comment's thread
view the rest of the comments
[–] igorlogius@lemmy.world 6 points 1 year ago* (last edited 1 year ago) (1 children)

AFAIK, the default firefox flatpak configuration has the cache path in ~/.var/app/org.mozilla.firefox if it is a user install, which is mounted/passed into the running container instance.

You can change the cache path in about:config via browser.cache.disk.parent_directory and if you want to use a path outside of the flatpak container, you can use flatseal to create a filesystem overwrite.

Hope these infos help.

[–] mcepl@lemmy.world 2 points 1 year ago

It turned out to be a lot more complicated https://github.com/JimmXinu/FanFicFare/issues/985 and not at all a Flatpak fault.