Thread: PackageMaker: Add to PATH?
06-01-2010, 02:05 PM #1
PackageMaker: Add to PATH?
- Member Since
- Jun 01, 2010
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.
06-01-2010, 03:18 PM #2
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By tcpms in forum OS X - Development and DarwinReplies: 2Last Post: 01-16-2012, 11:39 AM
By jjw3579 in forum OS X - Operating SystemReplies: 1Last Post: 09-22-2011, 12:12 PM
By kmansfie in forum OS X - Operating SystemReplies: 1Last Post: 12-30-2010, 07:25 AM
By charlesevans in forum OS X - Development and DarwinReplies: 0Last Post: 10-16-2009, 04:39 PM
By Tiemo in forum OS X - Development and DarwinReplies: 0Last Post: 02-12-2009, 09:27 AM