mailRe: [1.3.15/Mac] Linking to global PATHs


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Martin Ballaschk on May 29, 2012 - 09:24:
Hi Edward,

there are Mac Apps which ask the user for PATH variables, e.g. the text 
editor TextMate:
http://markushanses.files.wordpress.com/2010/10/advanced.png

There is already a file with all the $PATHs in the users home directory: it's 
~/.bash_profile, the profile of the standard Shell in Mac OS X. Maybe this 
makes a good default value.


Apart from that, these MacOS *.app bundles can be opened by 
$ open -a <Application Name> 

Maybe this is some inspiration ;)

Cheers
Martin

On 24.05.2012, at 10:17, Edward d'Auvergne wrote:

Hi,

I've been thinking about a solution for this problem, but it's not
easy.  I do not know how to get the environmental variable $PATH into
an App, as this is only designed to be in the environment of a
terminal.  Maybe there is another way on a Mac to define where Apps
search for other programs?  But I have a feeling that the App is
designed to be stand-alone and complete isolated from everything else
on the system.  There are two solutions that I can think of.  The
first would be to design a new part of relax which reads a
configuration file from your home directory.  relax would then have a
'file association' dialog in the 'tools' menu.  The only problem is
that reading a config file from the home directory might be equally
confusing for a Mac app!  This would require a lot of research into
how Mac apps behave, and how the pInfo file needs to be modified.  The
other solution would be manually specify the full path each time :S
Unfortunately, I think I need more time to think of a permanent
solution.  Maybe there is some Mac user out there who knows of such a
solution?

Cheers,

Edward



On 7 May 2012 11:49, Martin Ballaschk <ballaschk@xxxxxxxxxxxxx> wrote:

Hi Edward,

as the MacOS relax package is self-contained, relax can't see that I've 
installed grace system-wide. The same is probably true for e.g. PyMol.

Where do I have to place a link inside the package, .i.e where is the PATH 
of the .app-Package?

I tried placing a link inside Frameworks/, but this didn't help.


Cheers
Martin
_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-users mailing list
relax-users@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users

-- 
Martin Ballaschk
AG Schmieder
Leibniz-Institut für Molekulare Pharmakologie
Robert-Rössle-Str. 10
13125 Berlin
ballaschk@xxxxxxxxxxxxx
Tel.: +49-30-94793-234/315
Büro: A 1.26
Labor: C 1.10




Related Messages


Powered by MHonArc, Updated Tue May 29 09:40:08 2012