this post was submitted on 30 Aug 2023
12 points (87.5% liked)

Firefox

20333 readers
61 users here now

/c/firefox

A place to discuss the news and latest developments on the open-source browser Firefox.


Rules

1. Adhere to the instance rules

2. Be kind to one another

3. Communicate in a civil manner


Reporting

If you would like to bring an issue to the moderators attention, please use the "Create Report" feature on the offending comment or post and it will be reviewed as time allows.


founded 5 years ago
MODERATORS
 

I have downloaded firefox-xxx.tar.bz2 from the official site and extracted it to separate directories named firefox1, firefox2 etc. I launch Firefox using the script

#!/bin/sh

if [ $(pwd) != "/home/${USER}" ]
then
        HOME=$(pwd)
        echo "Starting firefox from ${HOME}."
	firefox --no-remote
else
        echo "ERROR. Current directory is same as the main Firefox directory."
        exit 1
fi 

exit 0

Been using this way for quite sometimes now for account and cookie separation (yes I know about container extension). Is it safe to do so or should I pass something else as argument for better sandboxing. Also i noticed that, every instances run on the same version as my main properly installed firefox, Does this have something to do with the sandboxing or just a perk of auto-updates?

top 6 comments
sorted by: hot top controversial new old
[–] Subversive@lemmy.ml 20 points 2 years ago (1 children)

I think you want to use profiles, not myltiple binaries. Just lauch with "--no-remote --profile-manager"

https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles

[–] Synnr@sopuli.xyz 14 points 2 years ago

Yeah, this is about the hackiest hack you can hack. If OP says it works then great, I guess, but profiles are exactly this just built-in and tested.

[–] d_k_bo@feddit.de 6 points 2 years ago (2 children)

Since you are running firefox instead of ./firefox, I guess you are using your system-wide firefox anyway. You can just use the built-in profile manager instead.

[–] t_uxio@discuss.tchncs.de 1 points 2 years ago

But when I check the about:profile, it indicates the root directory not as my main one. Like if my main ff is in /home/user/.mozilla then my instance's root directory is showing /home/user/firefox1/.mozilla.

[–] t_uxio@discuss.tchncs.de 1 points 2 years ago

weirdly enough, when i launch ff by ./firefox --no-remote and check the about:profile, it is showing up as a separate profile in my main ff. \

[–] t_uxio@discuss.tchncs.de 1 points 2 years ago

I need persistancy.