How to make unveiled-Firefox as default browser ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make unveiled-Firefox as default browser ?

dmitry.sensei
Hi!

How to make unveiled-Firefox as default browser ?
xterm
$firefox
<click @make firefox default browser">
xterm output
** (firefox:98470): WARNING **: 14:36:29.641: Cannot set application
as default for URI scheme (http): Can’t create user MIME configuration
folder /home/dmitriy.o/.config: No such file or directory

** (firefox:98470): WARNING **: 14:36:29.641: Cannot set application
as default for URI scheme (https): Can’t create user MIME
configuration folder /home/dmitriy.o/.config: No such file or
directory

** (firefox:98470): WARNING **: 14:36:29.641: Cannot set application
as default for URI scheme (ftp): Can’t create user MIME configuration
folder /home/dmitriy.o/.config: No such file or directory

** (firefox:98470): WARNING **: 14:36:29.641: Cannot set application
as default for URI scheme (chrome): Can’t create user MIME
configuration folder /home/dmitriy.o/.config: No such file or
directory

** (firefox:98470): WARNING **: 14:36:29.642: Cannot set application
as default for MIME type (text/html): Can’t create user MIME
configuration folder /home/dmitriy.o/.config: No such file or
directory

** (firefox:98470): WARNING **: 14:36:29.642: Cannot set application
as default for extension (htm): Can’t create user MIME configuration
folder /home/dmitriy.o/.config: No such file or directory

** (firefox:98470): WARNING **: 14:36:29.642: Cannot set application
as default for MIME type (application/xhtml+xml): Can’t create user
MIME configuration folder /home/dmitriy.o/.config: No such file or
directory

** (firefox:98470): WARNING **: 14:36:29.642: Cannot set application
as default for extension (xhtml): Can’t create user MIME configuration
folder /home/dmitriy.o/.config: No such file or directory

--
Dmitry Orlov

Reply | Threaded
Open this post in threaded view
|

Re: How to make unveiled-Firefox as default browser ?

Stuart Henderson
On 2020-02-27, dmitry.sensei <[hidden email]> wrote:
> Hi!
>
> How to make unveiled-Firefox as default browser ?
> xterm
> $firefox
><click @make firefox default browser">
> xterm output

Guessing but something along these lines:

- see the pkg-readme about copying files to override pledge defaults
- edit at least unveil.main, maybe unveil.content:
  - add "$XDG_CONFIG_HOME r"
  - change "$XDG_CONFIG_HOME/mimeapps.list" from "r" to "rwc"

Try again, it might work, if not then look for more errors in output.

Either remove the copy of unveil.* files after setting this up, or be sure
to merge in changes from the original files when you update - these files
are *not* copied with the @sample "config file" mechanism so you will not
be warned at pkg_add -u time if they have changed.

(It is annoying that /etc/firefox/unveil.* files set the default rather
than just add to it, same for chromium, they are hard to work with as-is).