Re: An app is born and more about the future of SWI's development tools
Paulo Moura <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hi Jan, On 18/08/2013, at 14:34, Jan Wielemaker <[email protected]> wrote: > Hi Paulo, > > On 08/18/2013 03:25 PM, Paulo Moura wrote: >> My experience also, after running the goal above. >> >> But there's other issue that may affect some users. Due to MacOS X >> specifies where GUI applications don't inherit the same environment >> as e.g. the command-line shells, SWI-Prolog applications that expect >> and require environment variables to be defined will not work. The >> same issue affects PDT but this tool provides a workaround in its >> preferences allowing users to specify environment variables for the >> GUI process. > > ... and you need environment variables for Logtalk? That's one case. I'm sure there are others. The integration shell scripts (in this case, "swilgt") include logic to locate the Logtalk installation when the environment variables are not defined. But they are not useful in this case, of course. > From all my reading > in docs, I think you can set environment variables for an app in the > apps Info.plist. Not sure there is a sensible UI for that. I don't think so but that nor recommended. It would break everytime the user installed a new version of the application. > The alternative > is to ask people to edit ~/.plrc (Settings/User init file) and add either > :- setenv(Var, Value) calls or :- create_prolog_flag/3 calls. That's the simplest workaround. Again, this is an issue only on MacOS X. > Would that do? Alternatively, create a Logtalk.app :-) Too much pain for very little gain. A neutral solution would require packaging in the app resources all supported Prolog compilers. And then ensure that that babel tower would work in all major operating systems. Users in need of a GUI can use PDT, which already provides nice integration for Logtalk development. Cheers, Paulo ----------------------------------------------------------------- Paulo Moura Logtalk developer Email: <mailto:[email protected]> Web: <http://logtalk.org/> -----------------------------------------------------------------