Results 1 to 2 of 2
  1. #1


    Member Since
    Jun 01, 2010
    Posts
    1
    PackageMaker: Add to PATH?
    Hi folks,

    I'm creating a distribution package for my app. It's a command-line app, so I felt the best place to install it was /usr/local/bin. Unfortunately, that's not in users' PATH by default unless they've installed XCode (as I have).

    What's the easiest way to get the distribution to automatically add /usr/local/bin to the system PATH? Should I use a bash script?

    I don't just want to append a line to /etc/profile, as the user might already have it set. And there are various places where that might happen.

    Thanks,
    Lyle

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Why not add a symlink from /usr/bin to your program in /usr/local/bin? This way, you can be sure that if they try to execute your program, they will have no worries.
    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. packagemaker issue
    By tcpms in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 01-16-2012, 11:39 AM
  2. "Use UNC path from Active Directory" not opening the entire path
    By jjw3579 in forum OS X - Operating System
    Replies: 1
    Last Post: 09-22-2011, 12:12 PM
  3. Help with packagemaker
    By kmansfie in forum OS X - Operating System
    Replies: 1
    Last Post: 12-30-2010, 07:25 AM
  4. PackageMaker 3.0.4
    By charlesevans in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 10-16-2009, 04:39 PM
  5. Help with PackageMaker needed
    By Tiemo in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 02-12-2009, 09:27 AM

Posting Permissions

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