| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Jun 01, 2010
Posts: 1
![]() |
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 | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,452
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac 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 :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Add Printer dialog disabled & empty - no toolbar | permutations | OS X - Operating System | 13 | 12-06-2011 12:41 PM |
| Updating path to an external drive | mmatalis | Other Hardware and Peripherals | 0 | 02-15-2009 03:51 PM |
| Add additional memory | 5lobos | Other Hardware and Peripherals | 1 | 11-12-2008 08:27 PM |
| How do I add my own commentary to mp4 video? | StevenH | Movies and Video | 1 | 11-06-2008 03:45 AM |
| how can i set the path? | Bo Eddy | OS X - Development and Darwin | 1 | 05-12-2004 10:45 AM |
All times are GMT -4. The time now is 07:54 PM.
Powered by vBulletin