| Hi,
I think this is an excellent solution. I've now added it to svn, but
haven't yet tested.
Thanks for looking into this.
Cheers,
Andrés
On Fri, Mar 16, 2012 at 11:13 PM, Steven Yi wrote:
> That could be a workaround for now until we research a bit further.
> The issue with that though is that it'll mean the project isn't quite
> cross platform, so I couldn't give it to someone with Windows for
> example. Perhaps though we could add /usr/local/bin to CsoundQT's
> Info.plist:
>
> https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html
>
> https://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW1
>
> I added the following in CsoundQt.app/Contents/Info.plist, just before
> the last :
>
> LSEnvironment
>
> PATH
> /usr/local/bin
>
>
> and that seemed to work. Thoughts?
>
> steven
>
> On Fri, Mar 16, 2012 at 10:49 PM, Victor Lazzarini
> wrote:
>> We could install it in /usr/ocal/bin and then instruct users to give the full path to the CSD
>>
>>
>>
>> On 16 Mar 2012, at 22:40, Steven Yi wrote:
>>
>>> It seems to be tricky. I was reading up:
>>>
>>> http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/3756686#3756686
>>>
>>> it seems there's some tricky things here, as running apps from
>>> Spotlight doesn't load vars unless they're put in /etc/launchd.conf,
>>> and that only comes into play after a restart of the computer. Also
>>> there are other options, but they seem to behave differently depending
>>> on the version of OSX.
>>>
>>> Another option is to install csbeats and others into /usr/bin instead
>>> of /usr/local/bin. I'm not sure any of these sound necessarily great,
>>> but also I'm not sure what to do yet for the installer.
>>>
>>> On Fri, Mar 16, 2012 at 10:33 PM, Richard Dobson
>>> wrote:
>>>> I am sorry to say I have no idea how /etc/paths is used. I just added
>>>> /usr/local/bin using .bash_profile (which I also have to add of course).
>>>> It may be present in 10.7 (which I don't have yet), but the note at
>>>> the top of this page confirms that at least for 10.6 it is not included
>>>> by default:
>>>>
>>>> http://hpc.sourceforge.net
>>>>
>>>> An installer script could check foo the presence of usr/local/bin and
>>>> add it if not found. I tend to asssume the order of search paths is
>>>> important, to the individual user if not otherwise, so that probably any
>>>> addition should be at the end of the list.
>>>>
>>>>
>>>> Richard Dobson
>>>>
>>>>
>>>> On 16/03/2012 19:30, Steven Yi wrote:
>>>>> Interesting, it looks like it is set in /etc/paths on my system. We're
>>>>> installing commandline executables into /usr/local/bin. I'm
>>>>> wondering, is it preferred to have /usr/local/bin automatically added
>>>>> to $PATH? or just have the user set it? Or other alternative? (And,
>>>>> I guess /etc/paths is not used if not on the commandline, but within
>>>>> an app?)
>>>>>
>>>>> On Fri, Mar 16, 2012 at 7:15 PM, Richard Dobson
>>>>> wrote:
>>>>>> On 16/03/2012 16:22, Steven Yi wrote:
>>>>>> .
>>>>>>>
>>>>>>> Now, /usr/local/bin isn't added to my $PATH in my ~/.profile. I
>>>>>>> imagine it is done elsewhere, and that is not getting sourced when
>>>>>>> running a non-commandline app.
>>>>>>>
>>>>>>
>>>>>> On the Mac it is not put into PATH by default, you have to add it.
>>>>>>
>>>>>> Richard Dobson
>>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF email is sponsosred by:
>>>> Try Windows Azure free for 90 days Click Here
>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourcefor |