vitorgalvao / alfred-workflows

Collection of Alfred workflows
BSD 3-Clause "New" or "Revised" License
2.44k stars 167 forks source link

Support for MacPorts PATH #160

Closed mariusdkm closed 1 year ago

mariusdkm commented 1 year ago

Currently Alfred doesn't include the default path of mac ports binaries in it's PATH variable. So it would be great to add support for that in your scripts when using external binaries, specifically in my case yt-dlp the DownMedia workflow.

My current workaround is just to add ENV['PATH'] = '/opt/local/bin:/opt/local/sbin:' + ENV['PATH'] at the beginning of the downmedia_functions.rb file. (If this is considered ok, I could also open a PR)

vitorgalvao commented 1 year ago

Thank you for the request but I only support installations via Homebrew. In a literal decade of developing workflows, this is the first time I remember someone asking for MacPorts support.

You can add a PATH Workflow Environment Variable to the workflow but I would recommend instead symlinking the binary to /usr/local/bin.