Closed Bug 1837882 Opened 2 years ago Closed 2 years ago

Moving profile breaks it

Categories

(Core :: General, defect)

Desktop
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1429838

People

(Reporter: oldwizard1010, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0

Steps to reproduce:

OS - Linux

  1. Create new folder (test1)
  2. launch firefox from command line using test1 folder as profile
    firefox --profile ./test1
  3. install add-ons, do some stuff, then quit
  4. rename test1 to something else (test2) or move it to another location
  5. Launch from cli using new location
    firefox --profile ./test2
    • add-ons are broken
      spams with:
      IPDL protocol Error: Received an invalid file descriptor

option2:
0. create shared folder (for example /home/Shared)
0.1 set permissions for this folder to rw/rwx for some group of users (testgroup for example)
sudo groupadd testgroup
sudo useradd -m user1
sudo useradd -m user2
sudo usermod -a- G testgroup user1
sudo usermod -a- G testgroup user2
setfacl -d -m g:testgroup:rwx /home/Shared
0.2 login as user1

  1. Create new folder (test1)
    mkdir /home/user1/test1
  2. launch firefox from command line using test1 folder as profile
    firefox --profile /home/user1/test1
  3. install add-ons, do some stuff
  4. zip -r ./test1.zip ./test1; mv ./test1.zip /home/Shared/test1.zip; cd /home/Shared/; unzip ./test1.zip
    (zipping is optional, but helps with fixing some problems from option1)
  5. launch profile again, then quit
    firefox --profile /home/Shared/test1
  6. relogin as user2
  7. Launch from cli
    firefox --profile /home/Shared/test1

Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.

JavaScript error: resource://gre/modules/XULStore.jsm, line 58: Error: Can't find profile directory

Actual results:

unable to properly move/rename profile folder or use the same profile folder from different users

Expected results:

  1. firefox should probably use relative paths in extensons.json (found this one on reddit)
  2. profile folder should be easily moved, renamed and used from different users without errors (chromium can do this)

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → General
OS: Unspecified → Linux
Hardware: Unspecified → Desktop
Summary: Moving profile or using it from another user breaks it → Moving profile breaks it
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1429838
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: