Bug 149664 - install scripts create $HOME/.mozilla (and shouldn't)
install scripts create $HOME/.mozilla (and shouldn't)
Product: Fedora
Classification: Fedora
Component: firefox (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Christopher Aillon
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
Reported: 2005-02-24 17:01 EST by Matthew Miller
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-13 16:58:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthew Miller 2005-02-24 17:01:20 EST
Description of problem:

When you install the firefox RPM, it creates a .mozilla directory in your
homedir if you didn't have one there already. This is particularly noticable
when installing via sudo, as you end up with a root-owned ~/.mozilla in your own
home directory, which obviously breaks stuff. (If you install when logged in as
root, you'll get /root/.mozilla.)

RPMs shouldn't have user-directory side effects like this.

Version-Release number of selected component (if applicable):

Happens in FC3 0.10.1-1.0PR1.20 and in current rawhide 1.0-8. Not sure when it

How reproducible:


Steps to Reproduce:
1. rm -rf ~/.mozilla
2. sudo rpm -Uvh firefox-1.0-8.i386.rpm
3. ls -ld ~/.mozilla
Actual results:

drwx------  2 root root 4096 Feb 24 17:00 .mozilla/

Expected results:

ls: ~/.mozilla: No such file or directory
Comment 1 Matthew Miller 2005-02-26 00:10:30 EST
FWIW, the 1.0.1-1.3.1 package does this too.
Comment 2 Jeremy Katz 2005-04-27 21:00:13 EDT
Could work around by putting HOME=/root in the %post
Comment 3 Christopher Aillon 2005-05-09 13:53:17 EDT
Checked in a slightly different version of the workaround, using %{_tmppath}
instead.  firefox-1.0.3-5 and thunderbird-1.0.2-4 have the fix (though
thunderbird is not building because of gcc/ppc issues currently)
Comment 4 Matthew Miller 2005-05-10 09:43:37 EDT
Hi Christopher. I don't think that'll work properly, since %{_tmppath} is
expanded at RPM build time, not when %post is run. So it ends up being 

HOME=/usr/src/build/564449-i386/install-tmp /usr/lib/firefox-1.0.3/firefox -register

in the rawhide binary package, or /home/mattdm/tmp if I build the package using
my personal setup.
Comment 5 Christopher Aillon 2005-05-13 16:58:44 EDT
Ok, better solution using `mktemp -d` in place.
Comment 6 Matthew Miller 2005-05-13 17:15:31 EDT

Note You need to log in before you can comment on or make changes to this bug.