xbar
xbar copied to clipboard
"Unicorn!" plugin crashes xbar for me
@mnin - this plugin brakes xbar for me. Would not display anything in the menu bar. Once I deleted "Unicorn!" from the Plugin folder xbar went back to working. Is this replicated for others?
@matryer - Feature request: once xbar is running in the background if I 'open' xbar again from the Applications folder it would bring up xbar setttings -- in this case xbar Plugin folder, similar to how Bartender or Pastebot function. (would have made fixing the above issue much eaiser)
@leaanthony This shouldn't be possible, we should investigate this.
@matryer Assuming typo :-) I'll take a look 👍
@leland359 I can reproduce this issue.
I think I have to make it clear that it is not acceptable if people out there can no longer see a unicorn.
Think the plugin isn't able to just render the base64 encoded image anymore (this is the line which breaks xbar).
TIMESTAMP=$(date +"%s")
IMAGE=$(curl -s "http://www.cornify.com/getacorn.php?r=$TIMESTAMP" | base64)
echo '🦄'
echo '---';
echo "| href=http://www.cornify.com/unicornpictures image=$IMAGE"
@matryer was there any API change for render images?
The cornify.com service is still working.
It looks like the URL you are using for the IMAGE request redirects from HTTP to HTTPS. Changing the request to HTTPS or adding the -L flag to curl should resolve this.
It appears that xbar crashes with an invalid image (i.e., page redirect response).
Thanks, created a PR https://github.com/matryer/xbar-plugins/pull/1769