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

Not work in flatpak #48

Open
Naezr opened this issue Feb 19, 2024 · 4 comments
Open

Not work in flatpak #48

Naezr opened this issue Feb 19, 2024 · 4 comments

Comments

@Naezr
Copy link

Naezr commented Feb 19, 2024

I put the files from the "Program" folder in the path "/var/lib/flatpak/app/org.mozilla.firefox/current/active/files/lib/firefox" and got this error:
image

@MrOtherGuy
Copy link
Owner

I can't say anything definitive, but that sounds like Firefox is able to read the defaults/pref/config-prefs.js but it cannot read config.js

Perhaps flatpak tries to load it from somewhere else than normal binary directory?

@Naezr
Copy link
Author

Naezr commented Feb 19, 2024

I don't know, I tried replacing config-prefs.js and config.js with symlinks, but nothing worked. So I just uninstalled flatpak firefox and installed the regular package. I also tried to package fx-autoconfig in Appimage and the same error occurred there. One thing I can say for sure is that fx-autoconfig is not friendly with containers. It's not critical for me, I just wanted to let you know.

@MrOtherGuy
Copy link
Owner

I'm not sure about this, would need to dig about more stuff, but it kinda seems that autoconfig as feature (not specific to this implementation) just doesn't work with flatpak. In bug 1785278 a change was made that allowed autoconfig to work in snap builds - but it doesn't seem to apply for flatpak.

@dominichayesferen
Copy link

dominichayesferen commented Oct 24, 2024

It's intentional - Mozilla made it so if your config disables the sandbox it is 'invalid' - removing the sandbox-disabling line fixes the error but obviously prevents the JS loading entirely.

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

No branches or pull requests

3 participants