kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 128 forks source link

Troubleshooting Task.run('/bin/sh', ['-c', 'emacsclient -nc -a ""']) #263

Closed idmyn closed 4 years ago

idmyn commented 4 years ago

Hi there, I'm trying to set up a trigger to launch a new emacsclient frame (window) if there isn't one already, but I'm struggling to figure out why Task.run('/bin/sh', ['-c', 'emacsclient -nc -a ""']) isn't working...

Any ideas or tips for troubleshooting this sort of thing?

Thanks!

mafredri commented 4 years ago

Phoenix does not inherit your $PATH from the shell, so it may simply not find it. Try giving the full path to emacsclient, e.g. /usr/bin/emacsclient.

idmyn commented 4 years ago

That was exactly my problem 🤦🏻‍♂️

Thank you!