Saturday, March 12, 2011

Integrate the MacOS sandbox into an executable Firefox application

Following up on the ideas of this previous hint, there is also a possibility to make an application which starts with the sandbox already activated, so there is no need to run a shell script every time you need the sandbox. This is how to do that:
  • Make a copy of your Firefox.app and rename it to FirefoxSandbox.app
  • Right-Click on FirefoxSandbox.app and choose 'Show Package Contents.'
  • Take the sandbox definition from the hint referenced above and save it as 'sandbox' in the Contents/MacOS subfolder of the package. Replace all the references to 'Firefox.app' within that file with 'FirefoxSandbox.app.'
  • Create a file called 'firefoxSandbox' in the same Contents/MacOS folder and make it executable.
  • The contents of the 'firefoxSandbox' file are (just paste in the following): ...


Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=b4965fe8840b35336e9f8976bc39fe2f

applecare warranty macintosh news recent apple news mac games news macnn new mac news apple news rumors apple stocks news

No comments:

Post a Comment