pmario / file-backups

File Save & Backup Utility For TiddlyWiki
https://pmario.github.io/file-backups
76 stars 7 forks source link

Firefox changes the absolute path, which breaks file-backups #41

Open Coburn opened 3 years ago

Coburn commented 3 years ago

Using Firefox 85, FLATPAK VERSION, on Ubuntu 21.04 Hirsute (because the DEB version is currently broken). This version of Firefox, which apparently is gaining traction, is run inside of a container. It has changed the way it describes paths on the operating system. Therefore, where once we had:

/home/user/Documents/WikiDirectory/wiki.htm

we now have:

/run/user/1000/doc/99999abc/Documents⁩/WikiDirectory/wiki.htm,

where "99999abc" is a random hexadecimal number. This is a valid absolute path, but because it is run through the virtual filesystem and not the absolute Linux file tree, it breaks File Backups.

I guess this is a bit of beta testing, because Hirsute is not due out for a couple months. But at the same time, Flatpak is up and running. It is the suggested method of install for Firefox on Linux outside of a repository. And it alone works, whereas the DEB version and the gzipped version (and, old news, the PortableApps version under Wine) do not work on my OS. So I hope very much you have a fix for this, because it is coming your way.

Thanks

pmario commented 3 years ago

Hi, Your directory seems to use Documents directory. ... If your browser download setting points to the Documents dir it should work.

The AddOn uses the browser API. It doesn't have access to any absolute path outside of the "downloads" directory.

I think this needs to be an issue in the browser repo.

Do you have any error message? May be F12 and try to save. Any error there?

pmario commented 3 years ago

I'm using Ubuntu 20.04 on 1 of my machines - I'm mainly using LTS versions. So I'll probably never have a possibility to test something on 21.xx.

Do you have a link to the Flatpak version you use?

Coburn commented 3 years ago

https://flathub.org/apps/details/org.mozilla.firefox

On Mon, Feb 15, 2021 at 4:43 PM Mario Pietsch notifications@github.com wrote:

I'm using Ubuntu 20.04 on 1 of my machines - I'm mainly using LTS versions. So I'll probably never have a possibility to test something on 21.xx.

Do you have a link to the Flatpack version you use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pmario/file-backups/issues/41#issuecomment-779513429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUI6S7WZGFNGJ4ZQO7JW53S7G5R7ANCNFSM4XSOA6IQ .