Results 1 to 5 of 5
  1. #1

    V6Pony's Avatar
    Member Since
    Oct 30, 2010
    Location
    Southern Illinois
    Posts
    273
    Specs:
    MBP 15" I7 first one and loving it.
    Open a GUI app as root command line?
    I like to use the editor bluefish. I can open it from a command line $open -a bluefish this opens it ok. So when I need it with root rights I tried it as $sudo open -a bluefish. This opens bluefish but not with root rights.

    Is there a command that will let me open this with root rights?

  2. #2

    V6Pony's Avatar
    Member Since
    Oct 30, 2010
    Location
    Southern Illinois
    Posts
    273
    Specs:
    MBP 15" I7 first one and loving it.
    I found that you can use sudo bash to give the shell root rights. This works when you open bluefish it has root rights.

    But now I can not find out how to change back to normal rights in the terminal? There must be some command. You can close the terminal and re open it that works.

    Ooops me bad. sudo bash does not give bluefish or gedit root rights. So there must be some other way. Until I find it will use sudo pico.

  3. #3

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,658
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    Why do you need to open the editor with admin privs? If you are editing files within your home directory, you shouldn't need that. If you do need to modify things as admin, I've found using a command line editor (vi) to be the fastest and quickest.

    If you normally work with an editor that has admin privs all the time, you're asking for trouble should change your habits..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  4. #4

    V6Pony's Avatar
    Member Since
    Oct 30, 2010
    Location
    Southern Illinois
    Posts
    273
    Specs:
    MBP 15" I7 first one and loving it.
    Quote Originally Posted by Raz0rEdge View Post
    Why do you need to open the editor with admin privs? If you are editing files within your home directory, you shouldn't need that. If you do need to modify things as admin, I've found using a command line editor (vi) to be the fastest and quickest.

    If you normally work with an editor that has admin privs all the time, you're asking for trouble should change your habits..
    RazOrEdge. I agree. I only use and editor with root rights when I need to edit a file that needs these rights. I can use pico for this it works ok.

    I would rather use bluefish editor for everything. I just like the way it works. Under normal conditions it is used without root rights. As you can open pico with root privileges "sudo pico". I was trying to find a way to open bluefish or gedit as root when I needed to use them. Have not found a way to do this yet. That is what I was looking for.

  5. #5

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    This should do the trick:
    Code:
    sudo /Applications/Bluefish.app/Contents/MacOS/Bluefish
    You'll have to modify that command appropriately - I have no idea where the app bundle is nor do I know what the binary is called. Tab completion is your friend here.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installing .app from command line
    By jnojr in forum OS X - Operating System
    Replies: 5
    Last Post: 03-04-2013, 12:48 PM
  2. Is it possible to open a GUI app using another user?
    By Xorcerer in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 09-02-2010, 11:03 PM
  3. open new terminal from command line
    By drjimmy42 in forum OS X - Operating System
    Replies: 0
    Last Post: 03-02-2009, 11:06 PM
  4. I need help with this command line using Terminal app
    By SniperCrim in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 09-07-2007, 11:26 PM
  5. Open GUI applications as root
    By gatorparrots in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 03-03-2003, 06:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •