Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Launch GUI programs as root' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch GUI programs as root
Authored by: gatorparrots on Apr 01, '03 12:10:14PM

This thread on the forum site contains much more complete information about launching GUI applications as root:
http://forums.macosxhints.com/showthread.php?s=&threadid=9872
The hint posted here only shows how to open a Cocoa application as root, but not a Carbon application. The forum thread will show you how to open both kinds of programs as root.

Also, if you have the system appearance set for "Graphite" in the General system preference pane, then a GUI application launched as root will have an "Blue" apple for the Apple Menu icon. This is the easiest way to distinguish between which applications were launched as root and which ones were launched as a normal user.



[ Reply to This | # ]
GUI programs as root, e.g. anti-virus apps
Authored by: tjj on Apr 02, '03 01:58:23AM
Very useful when trying out e.g. virus scanners. Presently, I am testing Norton beta v. 9, which refuses to scan some files unless run as root. The command: sudo /Applications/Norton\ Solutions/Norton\ AntiVirus.app/Contents/MacOS/Norton\ AntiVirus works

[ Reply to This | # ]
GUI programs as root, e.g. anti-virus apps
Authored by: tjj on Apr 02, '03 02:04:29AM

err, the backslashes escaping spaces disappeared when submitted, sorry about that. Perhaps without coding works better like this:
sudo /Applications/Norton\ Solutions/Norton\ AntiVirus.app/Contents/MacOS/Norton\ AntiVirus



[ Reply to This | # ]
backslashes to escape spaces
Authored by: gatorparrots on Apr 02, '03 10:46:52AM
Using quotes to escape backslashes is much more effecient (less keystrokes) for escaping spaces, not to mention being friendlier to GeekLog:

Backslashes
sudo /Applications/Norton\ Solutions/Norton\ AntiVirus.app/Contents/MacOS/Norton\ AntiVirus vs.
Quotes
sudo "/Applications/Norton Solutions/Norton AntiVirus.app/Contents/MacOS/Norton AntiVirus"

[ Reply to This | # ]