xbar-plugins icon indicating copy to clipboard operation
xbar-plugins copied to clipboard

001-airconnect.1d.sh: Updates for Apple silicon

Open cuprousoxide opened this issue 2 years ago • 2 comments

fao @cartoonchess -

Looks like the default process name has changed from aircast-osx-multi to aircast-macos. Also, line 75 has said process name hardcoded in a grep instead of referring to the processName variable defined up top by the user. I'd do a PR myself for those two little items, but I also had to add a line to export my DYLD_LIBARY_PATH otherwise I get an error about libcrypto and the plugin doesn't actually work. It's my understanding this has to do with Homebrew putting packages somewhere different on Apple silicon (which I use). I'm a layman and not a developer and I'm not sure what the best practice is for handling Intel vs Apple issues like this other than adding a line for m* chip users to uncomment?

cuprousoxide avatar Sep 03 '24 20:09 cuprousoxide

@cuprousoxide

You might need to set the shebang to include both the M* silicon and not. Here is an example from a recent open PR:

#!/usr/bin/env -S PATH="${PATH}:/opt/homebrew/bin:/usr/local/bin" php

The -S PATH="" sets up the script's path to include /opt/homebrew/bin for M* silicon and /usr/local/bin for older machines.

sprak3000 avatar Sep 04 '24 00:09 sprak3000

Closing due to age.

sprak3000 avatar Aug 10 '26 12:08 sprak3000