-
-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Describe the bug
Whenever I move the menubar icon for my plugin, Swiftbar seems to forget it the next time it opens. However, if I add another plugin and move that, the order of my original plugin appears to be preserved.
To Reproduce
It's easier to reproduce with Streamable plugins.
Steps to reproduce the behavior:
- Create streamable plugin using Deno, which outputs an image to the menubar
- Relocate the icon in the menubar
- Close and reopen Swiftbar
- Observe that the icon position has reset
Expected behavior
The position of all plugins should preserve across restarts, disable/enable cycles and refreshes.
Screenshots
Original position (green T):
After restart:
Environment:
- macOS version: 15.7.1 (24G231)
- SwiftBar version: 2.0.1
Plugin Example:
Tilt plugin code (requires Deno)
#!/usr/bin/env /opt/homebrew/bin/deno
// <swiftbar.type>streamable</swiftbar.type>
import { readLines } from "https://deno.land/std@0.197.0/io/mod.ts";
let count = 0;
const update = () => {
console.log("~~~");
console.log("Test");
console.log("---");
// SwiftBar sends "myAction\n" over stdin
console.log("Trigger Action | stdin=myAction");
console.log(`Triggered | badge=${count}`);
};
const actions = {
myAction: () => count++,
};
update();
for await (const action of readLines(Deno.stdin)) {
actions[action]?.();
update();
}Additional Context:
- I don't run Bartender/Dozer/etc. or tested the issue without it running
solanab
Metadata
Metadata
Assignees
Labels
No labels