Today-Scripts icon indicating copy to clipboard operation
Today-Scripts copied to clipboard

Symlinks aren't recognized as executable

Open rkennedy opened this issue 8 years ago • 1 comments

I've installed bash via Homebrew, which means that my bash really lives in /usr/local/Cellar/bash/.../bin/bash, with a symlink at /usr/local/bin/bash. When I specify the program to run as /usr/local/bin/bash (which happens automatically because it's auto-populated from my SHELL environment variable), Today Scripts highlights it in red and refuses to save the entry.

This is evidently because of the check at line 111 of EditViewController.m:

if (! [NSFileManager.defaultManager isExecutableFileAtPath:programString]) {

I'm afraid I have no solution to suggest, but it seems clear to me that a symlink to a valid executable should be accepted the same as an actual executable.

rkennedy avatar Aug 18 '16 19:08 rkennedy

+1

I think this might be related to why I can't get this working for fish. I also have a red program variable.

mgroth0 avatar Mar 07 '17 10:03 mgroth0