RasmusLindroth / tut

TUI for Mastodon with vim inspired keys
https://tut.anv.nu
MIT License
449 stars 29 forks source link

Use /bin/sh to launch editor #96

Closed jezcope closed 3 years ago

jezcope commented 3 years ago

I'm not that familiar with go, but I've tested this fix for #95 locally and it seems to work as intended. I've hardcoded "/bin/sh" as I'm pretty confident that's guaranteed by POSIX to exist. It might need some quotes or escaping if there's a possibility that f.Name() includes spaces or other naughty characters.

RasmusLindroth commented 3 years ago

I solved it in another way, but thank you for the pull request :)