You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a Scala developer and I would like to develop plugins for xbar.
I am currently successfully able to write Scala/Java compiled plugins using Swiftbar.
In order to accomplish the same in xbar, I need two things
Ability to add metadata to a binary file
Plugin path (full path, including plugin file name) as env variable
These two things will enable developers to compile a binary plugin file which simply outputs texts. Using any programming language. These compiled plugins don't require bash or any other shell and can be directly invoked.
Currently, Swiftbar is using xattr mechanism to read metadata from binary plugins. And it provides SWIFTBAR_PLUGIN_PATH env variable.
The text was updated successfully, but these errors were encountered:
@bilal-fazlani Thanks for opening this, it is indeed something we want to do. Adding metadata to the binary is an interesting challenge. xattr is fine for macs, but xbar plans to become cross-platform in the future, so we may need a more agnostic way to solve this.
@leaanthony and I will ponder it. Any other ideas are welcome.
I like the idea of extended attributes, but I know they can be a headache with different limitations based on the OS and even the underlying filesystem.
Another option would be to come up with an invocation standard that causes a plugin to return its metadata in a specific format. This could be the existing metadata format sent to stdout or whatever you decide on.
Hi,
Thank you for reviving this project.
I am a Scala developer and I would like to develop plugins for xbar.
I am currently successfully able to write Scala/Java compiled plugins using Swiftbar.
In order to accomplish the same in xbar, I need two things
These two things will enable developers to compile a binary plugin file which simply outputs texts. Using any programming language. These compiled plugins don't require bash or any other shell and can be directly invoked.
Currently, Swiftbar is using xattr mechanism to read metadata from binary plugins. And it provides
SWIFTBAR_PLUGIN_PATH
env variable.The text was updated successfully, but these errors were encountered: