Closed
Bug 272656
Opened 20 years ago
Closed 14 years ago
If you try to install a global extension and the current user is running a session, you get the profile selection dialog
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: joe, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041109 Firefox/1.0 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041109 Firefox/1.0 If you try to install a global extension using -install-global-extension and the user is currently running firefox, the profile selection GUI will pop up and block until there's input. If this is done in a script, it can effectively block forever. On Linux, this happens if you're logged in and running firefox as root. I admit this case isn't likely to happen, but the much more common case is if you're running firefox as a user and then do "sudo firefox -install-global-extension /foo/bar.xpi", because while it'll be able to install globally, firefox will want to use your own profile. (Think: doing "sudo make install") In reality this probably isn't going to be a huge deal Reproducible: Always Steps to Reproduce: 1. Have a firefox session running 2. Do "sudo firefox -install-global-extension /foo/bar.xpi" as the user running firefox. Actual Results: Watch the profile manager pop up because the default profile is locked. Expected Results: It should preferably install the extension like it otherwise would if I did "su" and then installed it. Otherwise it could error out, but it should definitely not block on UI.
With firefox specifically, or just in general? I've been doing it fine for 10 years or so generally, so I don't think that's it. Either way though, does it really matter? Firefox is doing all the heavy lifting, and with root privileges.
With Firefox specifically: we use $HOME to locate the user's profile directory, and sudo doesn't reset that unless you tell it to with -H. -install-global-extension shouldn't be using a profile like that, etc., but I'm not sure what the status of fixing that is. I suspect this is a dup of the bug to fix just that, but I can't find it at the moment.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•19 years ago
|
||
workaround... run firefox and specify a temporary profile along with the install-global-extension option. export MOZ_NO_REMOTE=1 mkdir /tmp/bogus.profile ./firefox -profile /tmp/bogus.profile -install-global-extension /foo/bar.xpi rm -d -R /tmp/bogus.profile
Comment 5•18 years ago
|
||
I actually think the workaround should just be documented and this bug resolved -> wontfix. It is simpler to just install the extension by placing it extracted in the appdir/extensions directory but it should always have a chrome.manifest in case the user doesn't have write access to create one.
Updated•18 years ago
|
Assignee: bugs → nobody
QA Contact: bugs → extension.manager
Comment 6•16 years ago
|
||
Comment #4 does not resolve the problem in bug 392434
Comment 7•16 years ago
|
||
We *might* be removing these command line options in the future and instead recommend the placing of the extracted files into the appdir/extensions directory as noted in comment #5
Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
Comment 8•14 years ago
|
||
We no longer support these command line options
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•