Post

Replies

Boosts

Views

Activity

Reply to Returning values from terminal
Yeah, it still does the same thing with "which". It returns empty for homebrew apps but not the standard ones. I had already resigned myself to making people just find the apps themselves and put a note to do a search in the terminal for them. It shouldn't be necessary anyway. My app is just a UI wrapper for a command line tool itself so it's just saving people who probably already know it well enough some time. I'll work on it from time to time to see if I can figure out the problem but I'm not going to beat myself over the head about it. This was supposed to just be a quick little project to make life a little easier on myself and some others. It's weird though. I'm able to do just about everything from terminal commands with my app like pushd to change directory which is sometimes needed and the apps run fine, sometimes with like 10 arguments. It's only "which" that gives me any problems. Thanks for the help
Sep ’21
Reply to swift Process() return values
Strings still return empty for me. If I do a search for files such as ls or which itself it returns them just fine. If I search for avr-gcc it returns empty as it has been doing for me all day. I can use "which avr-gcc" just fine from the terminal but in my swift code it returns nothing. Edit: By that same token, it seems Whereis works for common programs in terminal but it returns nothing for apps like avr-gcc or anothers added via homebrew. I'm not sure the significance of that
Sep ’21