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


Click here to return to the 'better way to launch TextEdit from the terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
better way to launch TextEdit from the terminal
Authored by: ClassicUser on Nov 26, '04 11:59:03PM
Actually, no - oddly enough, "sudo" will still launch the app as your standard interactive user, not as root.

A few workarounds:
  1. Use BBEdit (see http://www.barebones.com/products/bbedit/ ). EXCELLENT text editor, which is smart enough to ask for authentication within the app, when a limited-access file is edited.
  2. Launch the GUI editor of your choice - including TextEdit - using Pseudo (see http://personalpages.tds.net/~brian_hill/pseudo.html ). An absolutely must-have application, which allows any GUI application to be launched "as root".
Of course, all the standard caveats apply: You can really screw things up if you don't know what you're doing, yadda yadda yadda...

[ Reply to This | # ]
better way to launch TextEdit from the terminal
Authored by: vonleigh on Nov 27, '04 05:24:23AM

It doesn't seem terribly odd when you think about it. Sudo performs the command following it with escalated privileges, therefore what's getting run as sudo is the open command.

However the open command doesn't really care if it's root or not, so it just goes about it's business opening the application.



[ Reply to This | # ]