This is a firefox-addon question, just tagging osx for ya.
On MacOS X I have copied the all contents of /Applications/Firefox.app
to /Users/noit/Desktop/custom profile.app
. Except all files are copied as alias (folders are copied as folders). Only non-alias file is the icon in custom profile.app/Contents/Resources/firefox.icns
, i overrwrite that one with custom icon. (Well to be accurate, the plist.info is copied but CFBundleExecutable is changed to a new exec i place in the MacOS folder, which launches the firefox from MacOS with command line arguments to ensure right profile launches)
This allows me to run a seperate profile as a "shortcut". Now if user "Keeps in Dock" the dock icon that shows, or on restart of computer marks "Re-open windows from last time", or if user right clicks dock icon and says "Open at log in", or if user restarts Firefox it properly launches back into right profile. Added bonus is it obeys the custom icon.
Some issues when running a profile out of here:
- On update, the files are written to the
/Desktop/custom profile.app
, not theApplications/Firefox.app
. So right now on browser startup, i test if its first time starting up in update profile, and if so, then I ensure to copy the newly made files back toApplications/Firefox.app
and set them as alias's in my/Desktop/custom profile.app
. __Is there any way for me to change the path so it updates toApplications/Firefox.app
? - The other issue is, some special paths are now pointing differently, like
FileUtils.getFile('XREExeF', []).path
is now/Desktop/custom profile.app/Contents/MacOS/firefox
instead ofApplications/Firefox.app/....
, is there anyway for me to change this to be the Applications path?
Thanks
EDIT:
Here is a diff between the regular app on right and alias copied app on left:
https://www.diffchecker.com/lihx3o8w
So the keys that got changed are a total of 20:
Key Regular.app Alias.app
`XREExeF` `/Applications/Firefox.app/Contents/MacOS/firefox` `/Users/noit/Desktop/Firefox - dev.app/Contents/MacOS/firefox`
`ProfLDS` `/Users/noit/Library/Caches/Firefox/Profiles/jv5ijq47.Unnamed Profile 1` `/Users/noit/Library/Application Support/Firefox/Profiles/jv5ijq47.Unnamed Profile 1`
`XREAppDist` `/Applications/Firefox.app/Contents/Resources/distribution` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/distribution`
`UpdRootD` `/Users/noit/Library/Caches/Mozilla/updates/Applications/Firefox` `/Users/noit/Library/Caches/Mozilla/updates/Users/noit/Desktop/Firefox - dev`
`DefRt` `/Applications/Firefox.app/Contents/Resources/browser/defaults` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/defaults`
`PrfDef` `/Applications/Firefox.app/Contents/Resources/defaults/pref` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/defaults/pref`
`profDef` `/Applications/Firefox.app/Contents/Resources/browser/defaults/profile` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/defaults/profile`
`ProfDefNoLoc` `/Applications/Firefox.app/Contents/Resources/browser/defaults/profile` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/defaults/profile`
`ARes` `/Applications/Firefox.app/Contents/Resources/browser/res` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/res`
`AChrom` `/Applications/Firefox.app/Contents/Resources/browser/chrome` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/chrome`
`APlugns` `/Applications/Firefox.app/Contents/Resources/browser/plugins` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/plugins`
`SrchPlugns` `/Applications/Firefox.app/Contents/Resources/browser/searchplugins` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser/searchplugins`
`ProfLD` `/Users/noit/Library/Caches/Firefox/Profiles/jv5ijq47.Unnamed Profile 1` `/Users/noit/Library/Application Support/Firefox/Profiles/jv5ijq47.Unnamed Profile 1`
`XPIClnupD` `/Applications/Firefox.app/Contents/Resources/browser` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser`
`CurProcD` `/Applications/Firefox.app/Contents/Resources/browser` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser`
`XCurProcD` `/Applications/Firefox.app/Contents/Resources/browser` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources/browser`
`XpcomLib` `/Applications/Firefox.app/Contents/MacOS/XUL` `/Users/noit/Desktop/Firefox - dev.app/Contents/MacOS/XUL`
`GreD` `/Applications/Firefox.app/Contents/Resources` `/Users/noit/Desktop/Firefox - dev.app/Contents/Resources`
`GreBinD` `/Applications/Firefox.app/Contents/MacOS` `/Users/noit/Desktop/Firefox - dev.app/Contents/MacOS`