Summary: | sudo emerge firefox without -H puts root-owned .mozilla in users' home directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | michael <michael> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
michael@smith-li.com
2004-10-10 19:32:30 UTC
Thanks, fixed in mozilla-firefox-1.0-r2 without bumping the revision. Also fixed in mozilla-thunderbird-0.9-r2. mozilla seamonkey seems to use a different method. --- mozilla-firefox-1.0-r2.ebuild 14 Nov 2004 03:27:04 -0000 1.1 +++ mozilla-firefox-1.0-r2.ebuild 15 Nov 2004 02:15:42 -0000 @@ -154,9 +154,14 @@ env-update # Register Components and Chrome + # + # Bug 67031: Set HOME=~root in case this is being emerged via sudo. + # Otherwise the following commands will create ~/.mozilla owned by root + # and 700 perms, which makes subsequent execution of firefox by user + # impossible. einfo "Registering Components and Chrome..." - LD_LIBRARY_PATH=/usr/lib/MozillaFirefox ${MOZILLA_FIVE_HOME}/regxpcom - LD_LIBRARY_PATH=/usr/lib/MozillaFirefox ${MOZILLA_FIVE_HOME}/regchrome + HOME=~root LD_LIBRARY_PATH=/usr/lib/MozillaFirefox ${MOZILLA_FIVE_HOME}/regxpcom + HOME=~root LD_LIBRARY_PATH=/usr/lib/MozillaFirefox ${MOZILLA_FIVE_HOME}/regchrome # Fix permissions of component registry chmod 0644 ${MOZILLA_FIVE_HOME}/components/compreg.dat |