Question about activity aware firefox

Hi,

I’m a Plasma/Activities user and I started playing with @hook’s activity-aware-firefox yesterday.

Not having a gitlab account I ask here about something neither the readme nor the changelog state.

A few months ago, Mozilla decided to move (for new installs of firefox only) the profiles folder from ~/.mozilla to ~/.config/mozilla.

I have a fairly recent firefox install on my machine and the script doesn’t work because it’s looking in the wrong folder. Is it a misconfiguration on my end or something that hasn’t been implemented yet?

Thanks in advance.

Seeing that it has not been updated by its author in some time, I’d say it has not been implemented.

However, you can easily change the location by editing line 17, as directed by the script:

## Edit to where the profiles are to be stored and used
FF_FOLDER="${HOME}/.config/mozilla/firefox"

Or symlink the ~/.mozilla folder to ~/.config/mozilla so updates don’t break anything.

I still daily drive it, but still have the old folder, I think.

I haven’t released 1.0.0 yet mostly because the script got so complex I don’t trust myself to review the “recent” changes to it. Help much appreciated.

We should add a check to see which folder exists and prefer the newer one, if it is there. Or do a symlink.

That would be preferable over the symlink. A couple of questions come to mind though:

  1. What if both exist?
  2. Newer might not necessarily mean current (I don’t know how Firefox handles this)
  3. Can Firefox output the profile folder to the terminal without running Firefox? That would probably be the most reliable method.

Help much appreciated.

I’d help if I could, it’s a cool project. I have basically zero shell scripting experience.

The next feature that could be cool would be to support Firefox forks (Floorp, Zen, Librewolf).