New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

PackageMaker: Add to PATH?


Post Reply New Thread Subscribe

 
Thread Tools
LyleK

 
Member Since: Jun 01, 2010
Posts: 1
LyleK is on a distinguished road

LyleK is offline
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
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,218
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Learning objective-c please help! | - (void)bind:(NSString *)binding toObject:(id)observableController withKeyPath:(NSStr »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Add Printer dialog disabled & empty - no toolbar permutations OS X - Operating System 13 12-06-2011 01:41 PM
Updating path to an external drive mmatalis Other Hardware and Peripherals 0 02-15-2009 04:51 PM
Add additional memory 5lobos Other Hardware and Peripherals 1 11-12-2008 09:27 PM
How do I add my own commentary to mp4 video? StevenH Movies and Video 1 11-06-2008 04:45 AM
how can i set the path? Bo Eddy OS X - Development and Darwin 1 05-12-2004 11:45 AM

All times are GMT -4. The time now is 01:28 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?