Firefox : Easy loading safe mode or personal profile

Post tutorials, HOWTO's and other useful resources here.
Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

Firefox : Easy loading safe mode or personal profile

Post#1 by Rapha_ » 20 Sep 2022, 14:16

Hello,



[Firefox Icon in safe-mode]

Sometimes Firefox freezes the machine, because too many opened windows have caused a saturation of the memory and the processor... (For information, I always launch the task manager to know where I am)

I unblock the situation by killing all the programs in memory, with the command Alt + Print + K
I reconnect as "Guest" and then if I restart Firefox, all the previously opened windows restart at the risk of blocking the computer again!

To know all the ways to start Firefox with the terminal :

Code: Select all

firefox --help
From this, I created a *.desktop file (launcher icon):

mozilla-firefox safe-mode.desktop

Code: Select all

[Desktop Entry]
Exec=firefox --safe-mode %u
Icon=firefox
Type=Application
Categories=Network;
Name=Firefox safe-mode

That I copy in :
/porteus/rootcopy/home/guest/

(The launcher icon will be found in the 'guest' folder at the next reboot)

So I will have at any time in case of crash, an easy way to restart a clean Firefox :)
(started in safe mode, the add-ons are temporarily deactivated, just restart Firefox to find them)



[Firefox Icon - with my personal profile]


So far I use mainly a light version of Firefox (88.0), but sometimes I also need a more recent but heavier version (101.0) because of compatibility problems with some sites

The module of the first version (light) is launched automatically. If I deactivate this module to activate the more recent optional module, it creates a new empty profile which will be activated by default when I load Firefox: But without my settings, bookmarks, Logins/Passwords and add-ons ! :%)


The solution is to create a *.desktop file (launcher icon) to keep my personal profile

mozilla-firefox - Profile.desktop

Code: Select all

[Desktop Entry]
Exec=firefox --ProfileManager %u
Icon=firefox
Type=Application
Categories=Network;
Name=Firefox Profile
That I copy in :
/porteus/rootcopy/home/guest/


(The launcher icon will be found in the 'guest' folder at the next reboot)

By loading only the module of another version of Firefox, with this icon all the settings of your personal profile are kept B)

itrukrakso
Black ninja
Black ninja
Posts: 61
Joined: 23 Jul 2022, 07:42
Distribution: Porteus 5.0_x86_64 Xfce

Firefox : Easy loading safe mode or personal profile

Post#2 by itrukrakso » 21 Sep 2022, 11:14

Hi
Rapha_ wrote:That I copy in :
/porteus/rootcopy/home/guest/
If the launcher is to appear on the desktop at the next boot, it must be in the directory:
/porteus/rootcopy/home/guest/desktop
and should it be in a specific place on the desktop, the file:
/home/guest/.config/xfce4/desktop/icons.screen0-1350x717.rc (the name will be similar)
must be saved.

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

Firefox : Easy loading safe mode or personal profile

Post#3 by Rapha_ » 23 Sep 2022, 20:08

itrukrakso wrote:
21 Sep 2022, 11:14
and should it be in a specific place on the desktop, the file:
/home/guest/.config/xfce4/desktop/icons.screen0-1350x717.rc (the name will be similar)
must be saved.
Thanks itrukrakso for the info :)


Do you know how to place my *.desktop files in the general menu ?

itrukrakso
Black ninja
Black ninja
Posts: 61
Joined: 23 Jul 2022, 07:42
Distribution: Porteus 5.0_x86_64 Xfce

Firefox : Easy loading safe mode or personal profile

Post#4 by itrukrakso » 24 Sep 2022, 06:20

Hi,
Rapha_ wrote:Do you know how to place my *.desktop files in the general menu ?
for user guest:
/home/guest/.local/share/applications
for all:
/usr/share/applications

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

Firefox : Easy loading safe mode or personal profile

Post#5 by Rapha_ » 24 Sep 2022, 09:50

:good:

Thanks !

Post Reply