mrbungle73 / editor-on-fire

Automatically exported from code.google.com/p/editor-on-fire
Other
0 stars 0 forks source link

External Tools Not Working On Mac #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running EOF from an application bundle, none of the external tools work.

I figured out that in order to run external commands, we need to prepend 
#!/bin/sh to all system commands. When doing this, the working directory is set 
incorrectly and none of the commands output files to the correct relative paths.

I tried to work around this by having changing the working directory but I 
still can't get it to output anything where I want it.

This may also be a clue as to why we couldn't get the program to run FoF on 
Linux.

Original issue reported on code.google.com by xander4j...@yahoo.com on 4 Apr 2013 at 4:42

GoogleCodeExporter commented 9 years ago
It turns out applications not started from the terminal use a different PATH 
configuration. This means we can't expect tools installed via MacPorts to work 
without customizing our bundle.

Fortunately, the info.plist file in the bundle accepts custom environment 
variables. With this we can set the path to include the usual defaults and any 
other places the utilities might install. For now, this will be /opt/local/bin, 
since that is where MacPorts installs stuff. I will have to look into whether 
there are other places the utilities might be installed (through other 
services, such as Fink).

Original comment by xander4j...@yahoo.com on 7 Apr 2013 at 4:34

GoogleCodeExporter commented 9 years ago
I have it working now using application-specific environment variables as 
described above.

Original comment by xander4j...@yahoo.com on 8 Apr 2013 at 2:27