swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.93k stars 92 forks source link

Refresh URL does nothing #280

Closed fenhl closed 2 years ago

fenhl commented 2 years ago

Testing on 1.4.3 beta 5, running open -e 'swiftbar://refreshplugin?name=09-speedruncom.10m.sh' has no effect (no output in Console, and the plugin's “Updated x minutes ago” doesn't reset). As the name indicates, this is a shell script that runs on a schedule, but the behavior seems to be the same for binary scheduled plugins and binary streaming plugins.

melonamin commented 2 years ago

The problem is an error in documentation and inconsistency in implementation...

All URLs except 'swiftbar://notify' expect "plugin id", and notify takes plugin id. For 09-speedruncom.10m.sh:

This is obviously dumb

melonamin commented 2 years ago

URL scheme accepts name or plugin parameter, content of which can be plugin name or plugin id(see README) 1.4.3 BETA 6