On Thu, Sep 24, 2020 at 09:39:13PM +0200, Jan Stary wrote: > On Sep 24 11:59:21, [email protected] wrote: > > On Thu, Sep 24, 2020 at 11:44:42AM +0200, Jan Stary wrote: > > > This is current/amd64 after a sysupgrade and pkg_add -u. > > > Firefox complains that it cannot store its own configuration > > > and settings into HOME: > > > > > > ** (firefox:19344): WARNING **: 11:38:24.795: Cannot set application as > > > default for URI scheme (http): Can’t create user MIME configuration > > > folder /home/hans/.config: No such file or directory > > > > > > ** (firefox:19344): WARNING **: 11:38:24.798: Cannot set application as > > > default for extension (htm): Can’t create user MIME configuration folder > > > /home/hans/.local/share/mime/packages: Permission denied > > > > > > The $HOME/.config directory does exist and is writable by the user. > > > The $HOME/.local/share/ directory does exist and is writable by the user. > > > > > > Is this because of the pledge/unveil restrictions? > > > > yes, that's supposed to be handled by the unveil.main lines. I never > > fully understood this part of the integration, but jcs@ might know > > better. Use ktrace to check what paths are opened, and maybe try > > adding/amending some of the lines. > > I have move unveil.main away temporarily and started firefox > - no error messages, apparently it saved the info of firefox > being the default browser (which is what has benn popping up > on every start, but never remembered, presumably because of > these failed writes), and then moved unveil.main back, > and removed the three lines above. There are no such > messages since then.
When it 'succeeds' setting fx as the default browser, from my understanding a desktop file is created in .local/share/applications/userapp-Firefox-XXXXXX.desktop and that's what tells firefox if it managed to set itself as default or not. That, and the corresponding name set in .config/mimeapps.list for the various mimetypes: [Default Applications] x-scheme-handler/ftp=userapp-Firefox-S1U51Z.desktop x-scheme-handler/chrome=userapp-Firefox-S1U51Z.desktop text/html=userapp-Firefox-S1U51Z.desktop application/x-extension-htm=userapp-Firefox-S1U51Z.desktop application/x-extension-html=userapp-Firefox-S1U51Z.desktop application/x-extension-shtml=userapp-Firefox-S1U51Z.desktop application/xhtml+xml=userapp-Firefox-S1U51Z.desktop application/x-extension-xhtml=userapp-Firefox-S1U51Z.desktop application/x-extension-xht=userapp-Firefox-S1U51Z.desktop That's how i understand it. How it works of fails to work, i dunno. Landry
