Re: cannot set firefox as default

2020-02-10 Thread Raf Czlonka
On Sun, Feb 09, 2020 at 10:22:04AM GMT, Solene Rapenne wrote:
> On Sat, Feb 08, 2020 at 10:49:53PM +0100, Jan Stary wrote:
> > On Feb 08 16:26:36, h...@stare.cz wrote:
> > > On Feb 08 15:53:11, sol...@perso.pw wrote:
> > > > Le 2020-02-08 14:45, Jan Stary a écrit :
> > > > > This is firefox-72.0.2 on a fresh current/amd64.
> > > > > 
> > > > > Upon start, it asks to be the default browser.
> > > > > I click yes, but the setting does not get saved:
> > 
> > Perhaps similarly,
> > 
> > (firefox:90643): Gtk-CRITICAL **: 15:40:50.103: Unable to create user data 
> > directory '/home/hans/.local/share' for storing the recently used files 
> > list: No such file or directory
> > 
> 
> Can you run mkdir -p ~/.local/share? Is it owned by your user?
> 
> For dbus, I don't know exactly what dbus-launch do, but you must either
> start the service messagebus using rcctl enable messagebus && rcctl
> start messagebus or start it at the beginning of your ~/.xsession,
> firefox is known to not work properly if dbus is not started.
> 
> You should have an environment variable DBUS_SESSION_BUS_ADDRESS
> 

Hi Solene,

After /usr/local/share/doc/pkg-readmes/firefox:

D-BUS
=
For proper integration with various desktop-oriented components, firefox
needs a session bus instance running.
If you're not running a desktop environment that takes care of it,
refer to /usr/local/share/doc/pkg-readmes/dbus-* to configure your
session startup script to start one.
Without a session bus running, the port is faking one (see
https://bugzilla.mozilla.org/show_bug.cgi?id=1466593), but GLIB might 
still try
to spawn one which might lead to a 'proc' pledge violation in the 
content
process.

Could you elaborate on "is known to not work properly if dbus is
not started", please?

I've been using Firefox for years and never had dbus running.

Regards,

Raf



Re: cannot set firefox as default

2020-02-09 Thread Solene Rapenne
On Sat, Feb 08, 2020 at 10:49:53PM +0100, Jan Stary wrote:
> On Feb 08 16:26:36, h...@stare.cz wrote:
> > On Feb 08 15:53:11, sol...@perso.pw wrote:
> > > Le 2020-02-08 14:45, Jan Stary a écrit :
> > > > This is firefox-72.0.2 on a fresh current/amd64.
> > > > 
> > > > Upon start, it asks to be the default browser.
> > > > I click yes, but the setting does not get saved:
> 
> Perhaps similarly,
> 
> (firefox:90643): Gtk-CRITICAL **: 15:40:50.103: Unable to create user data 
> directory '/home/hans/.local/share' for storing the recently used files list: 
> No such file or directory
> 

Can you run mkdir -p ~/.local/share? Is it owned by your user?

For dbus, I don't know exactly what dbus-launch do, but you must either
start the service messagebus using rcctl enable messagebus && rcctl
start messagebus or start it at the beginning of your ~/.xsession,
firefox is known to not work properly if dbus is not started.

You should have an environment variable DBUS_SESSION_BUS_ADDRESS



Re: cannot set firefox as default

2020-02-08 Thread Jan Stary
On Feb 08 16:26:36, h...@stare.cz wrote:
> On Feb 08 15:53:11, sol...@perso.pw wrote:
> > Le 2020-02-08 14:45, Jan Stary a écrit :
> > > This is firefox-72.0.2 on a fresh current/amd64.
> > > 
> > > Upon start, it asks to be the default browser.
> > > I click yes, but the setting does not get saved:

Perhaps similarly,

(firefox:90643): Gtk-CRITICAL **: 15:40:50.103: Unable to create user data 
directory '/home/hans/.local/share' for storing the recently used files list: 
No such file or directory



Re: cannot set firefox as default

2020-02-08 Thread Jan Stary
On Feb 08 15:53:11, sol...@perso.pw wrote:
> Le 2020-02-08 14:45, Jan Stary a écrit :
> > This is firefox-72.0.2 on a fresh current/amd64.
> > 
> > Upon start, it asks to be the default browser.
> > I click yes, but the setting does not get saved:
> 
> do you have dbus started?

Yes, I start firefox with 'dbus-launch firefox'



Re: cannot set firefox as default

2020-02-08 Thread Solène Rapenne

Le 2020-02-08 14:45, Jan Stary a écrit :

This is firefox-72.0.2 on a fresh current/amd64.

Upon start, it asks to be the default browser.
I click yes, but the setting does not get saved:


do you have dbus started?



cannot set firefox as default

2020-02-08 Thread Jan Stary
This is firefox-72.0.2 on a fresh current/amd64.

Upon start, it asks to be the default browser.
I click yes, but the setting does not get saved:

Cannot set application as default for URI scheme (http): Cant create user MIME 
configuration folder /home/hans/.config: No such file or directory
Cannot set application as default for URI scheme (https): Cant create user MIME 
configuration folder /home/hans/.config: No such file or directory
Cannot set application as default for URI scheme (ftp): Cant create user MIME 
configuration folder /home/hans/.config: No such file or directory
Cannot set application as default for URI scheme (chrome): Cant create user 
MIME configuration folder /home/hans/.config: No such file or directory
Cannot set application as default for MIME type (text/html): Cant create user 
MIME configuration folder /home/hans/.config: No such file or directory
Cannot set application as default for extension (htm): Cant create user MIME 
configuration folder /home/hans/.config: No such file or directory
Cannot set application as default for MIME type (application/xhtml+xml): Cant 
create user MIME configuration folder /home/hans/.config: No such file or 
directory
Cannot set application as default for extension (xhtml): Cant create user MIME 
configuration folder /home/hans/.config: No such file or directory

and on the next start, it asks again.

Is this unveil preventing firefox from seeing ~/.config?
(It does exist, and contains other programs' settings.)

Jan