MrOtherGuy / fx-autoconfig

Load custom javascript in browser context
Mozilla Public License 2.0
173 stars 11 forks source link

Not work in flatpak #48

Open Naezr opened 7 months ago

Naezr commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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.