Giter Site home page Giter Site logo

Comments (5)

amoilanen avatar amoilanen commented on July 18, 2024

Interesting question. I would think that the way to look up executables would be to set the PATH environment variable correspondingly and then launch Brackets when it is set as desired. In Linux for example this can be done as follows http://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux That is, the plugin should know as little as possible about the system paths as the environment in which Brackets is executed should handle it well enough. The things that the plugin should mostly deal with is how to capture some context from Brackets and pass appropriate parameters to commands. Please, let me know your further thoughts and whether the solution works for you.

from brackets-command-line-shortcuts.

CupOfTea696 avatar CupOfTea696 commented on July 18, 2024

I have those additional paths configured in my bash_profile though.

from brackets-command-line-shortcuts.

amoilanen avatar amoilanen commented on July 18, 2024

I quickly checked that if a script/command is placed to /usr/local/bin then it can be executed from Brackets. I also was able to execute 'java' which is installed in a sub-directory in the home directory and is added to the PATH environment variable.

Do you have the same problem when you launch Brackets from a Bash shell instance? How do you launch Brackets?

from brackets-command-line-shortcuts.

CupOfTea696 avatar CupOfTea696 commented on July 18, 2024

I normally launch Brackets from my Dock or using Spotlight (I'm on OS X).
Everything seems to work perfectly when I launch from Terminal.

When launched through Dock or Spotlight, I get the error "ERROR: /bin/sh: phpspec: command not found"

from brackets-command-line-shortcuts.

amoilanen avatar amoilanen commented on July 18, 2024

I normally launch Brackets from my Dock or using Spotlight (I'm on OS X).
Everything seems to work perfectly when I launch from Terminal.

Unfortunately, as there is no Mac around I cannot reproduce this particular issue.

I would think that there should be a way to launch an app with passing some desirable environment variables to it in OS X.

Not sure if this helps, but maybe the environment variables should be set in /etc/launchd.conf as described here http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x

from brackets-command-line-shortcuts.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.