xbar icon indicating copy to clipboard operation
xbar copied to clipboard

xbar version environment variable

Open fenhl opened this issue 2 years ago • 2 comments

I would like to write plugins that are compatible with xbar as well as the old BitBar app and the alternative implementation SwiftBar. As such it would be nice to have an environment variable to be able to identify the app running the plugin as xbar, ideally with version info, e.g. XBAR_VERSION=x.y.z. That way I would be able to make full use of the features available in the given implementation and version, with graceful fallbacks for unsupported features.

fenhl avatar Jul 30 '21 16:07 fenhl

@fenhl I'd support this, do you fancy doing a PR?

matryer avatar Aug 28 '21 11:08 matryer

I don't know enough about Go or the project structure, sorry.

fenhl avatar Aug 28 '21 12:08 fenhl