Re: Slightly OT? Firefox customizations
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=vVlQ7OiXC0shzToMwn0RGxrPLkFbZpJr0YzQMt23FIw=; b=fC8qUr/hDjJZhJ9NGkR+L03+VgZ9xUZuwzIfyrHIPP0hGM+8smole0k40oL2VYo2iw 4Do4w/VYpttR3EqMZo8+u/lPuGTNDsNTCwosgT/CQkPrm1MryC8sET/+q2tmuJooBhvg 5BzmCGdk9pD9/gC4juOEgl/pTrhTYdJSY1w04= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=G6l5Wemy6jkGzMS9eFW45eASgYMLO/+ePRKFEqPc0fMO82uYG0iHYS5uWQf+ybCJRt jkby1l3yuG/tXhEyXJdb4U/zGLghDWUcQpwIWlxxRV6SjPli/UUGweNCyDGNWtNPF9DF F6NQhkBwhC79QQu/5hGO1+cMn8M7zFwS+o0kE= OK, so this is what I would do. Don't use the installer to try to place the config files in the users home. Use a postflight script. I use iceberg, so I would have firefox installed in /Applications, just normally. I would then set a postflight script to copy your config files to the users profile. The config files will be used as resources and placed in the Contents/Resources/ directory of the package contents. The postflight script will check for the existence of a profile, and install files if it's there. If the profile isn't there, it needs to create it or wait for it to show up. If the profile isn't there, you could create it. I don't know how to do that, sorry. The other option is wait for it. If the script found the profile folder missing, it would create a ~/Application Support/My Profiles directory and install the config files there. I would create a script and launchd item that watched for a change in the ~/Library/Application Support/Firefox/Profiles/ folder and when it does change, run the aforementioned script. The script would check for a profile, "(random 8 characters)".default, and install the config files, remove ~/Application Support/My Profiles folder and contents, remove the launchd item, and remove itself. There has to be a better way... Hope that helps! On Fri, Apr 16, 2010 at 5:12 PM, Taylor Armstrong <Taylor.Armstrong@noaa.gov> wrote:
Have a semi-random issue that I've not found a good work-around yet.
Building a Firefox 3.6.3 package today - we're having to lock down certain features, so making a few tweaks.
The main /Applications/Firefox part is fine, but I'm also adding a couple of files to the user's /Library/Firefox/Profiles folder.
I used InstallEase, thinking this was a quick & dirty package - I just needed to install a Users.js file, and a userChrome.css file into each user's home directory.
Well, it worked fine, except for one issue: Mozilla creates user prefs in the following directory structure: ~/Library/Firefox/Profiles/<random string.default>/
If the user does not already have an existing profile, it creates a new one, ignoring the one with the (now) hard-coded folder name from my installer. If the user already has a profile, it is ignored while the installer creates a new profile, matching the name to the one I built the package from.
What is the best way to have the installer place the files into the existing profiles, for each user on the system, when the name of the last folder will not be a constant? I can't blow the existing profiles away without loosing user's bookmarks, etc., so just kind of stumped on a Friday afternoon.
thanks, Taylor
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ W. Taylor Armstrong Taylor.Armstrong@noaa.gov NOAA's National Ocean Service Domain Infrastructure Team 1305 East-West Highway Phone (301) 713-1156 Silver Spring, MD 20910 http://nos.noaa.gov ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/rustymyers.lists%40gmai...
This email sent to rustymyers.lists@gmail.com
-- Rusty Myers _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rusty Myers