KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Launching a 4D application as Root
PRODUCT: 4D | VERSION: | PLATFORM: Mac OS X
Published On: August 5, 2003

Compatibility: Version 6.8.x and 2003.x

To launch a 4D application as Root from the command line, you can execute one of the following commands:

sudo -b /System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFMApp '<path to application>'
sudo -b /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp '<path to application>'

You must use the path to the application, not application package (e.g. '/Applications/4th Dimension/Contents/MacOS/4th Dimension')

Here are some examples:

Version 6.8.x
1. sudo -b /System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFMApp '/Applications/4th Dimension/Contents/MacOS/4th Dimension'
2. sudo -b /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp '/Applications/4th Dimension/Contents/MacOS/4th Dimension'

Version 2003.x
1. sudo -b /System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFMApp '/Applications/4th Dimension/Contents/MacOSClassic/4th Dimension'
2. sudo -b /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp '/Applications/4th Dimension/Contents/MacOSClassic/4th Dimension'

Note: If you insert the path to the application in theTerminal Window by dragging the file's icon and dropping it into the Terminal Window, make sure that you remove any '\' that were added. Otherwise, the path will be considered invalid.