A fresh Omarchy install (punktfunk-setup → punktfunk-omarchy setup) left the bar widget on disk but not in the bar. Reported on omarchy-1 today, 0.35.0 canary, script byte-identical to main.
Root cause
setup_plugin copies the plugin into ~/.config/omarchy/plugins/punktfunk and calls omarchy plugin enable punktfunk in the same instant. The shell's PluginRegistry learns of a new directory through an inotify watch and an asynchronous bash rescan, so at that moment the id is unknown:
omarchy-plugin-enable: plugin 'punktfunk' is not known; run: omarchy-shell shell rescanPlugins
Setup caught the non-zero exit and printed a yellow "could not enable it automatically" under a green "widget installed", so the installer reported success. Running punktfunk-omarchy setup a second time worked because the files already existed.
Fix
Same wait as omarchy-plugin-add: omarchy shell shell rescanPlugins, then poll omarchy plugin list for up to 2 s (40 × 50 ms) before enabling. The manifest also gets "defaultSection": "right": without it Omarchy places a bar widget in the center, between weather and system-update.
Measured on omarchy-1 (Omarchy 4.0.0.alpha, 192.168.1.6)
Sequence
Result
copy, then enable at once (old)
not known, exit 1
same enable 3 s later
Enabled
patched setup_plugin from a clean state, first try
Enabled in 0.37 s
new manifest, disable + enable
widget in right, after tray
Clean state for the reproduction: omarchy plugin disable punktfunk; rm -rf ~/.config/omarchy/plugins/punktfunk. Shell log shows no punktfunk warnings after either run.
Not done
No retry on enable itself: once the id is listed, enable succeeded every time.
The warn path stays for a box with no running shell (setup from a TTY or ssh before first login); the message already names the command to run.
No changelog entry: 0.35.0 has no section yet and this is packaging, not ABI.
Checks: bash packaging/linux/omarchy/selftest.sh passes with a new stub-based check that plugin_known keeps polling; WRITING_BASE=origin/main scripts/ci/check-writing.sh passes.
A fresh Omarchy install (`punktfunk-setup` → `punktfunk-omarchy setup`) left the bar widget on disk but not in the bar. Reported on omarchy-1 today, 0.35.0 canary, script byte-identical to main.
## Root cause
`setup_plugin` copies the plugin into `~/.config/omarchy/plugins/punktfunk` and calls `omarchy plugin enable punktfunk` in the same instant. The shell's `PluginRegistry` learns of a new directory through an inotify watch and an asynchronous bash rescan, so at that moment the id is unknown:
```
omarchy-plugin-enable: plugin 'punktfunk' is not known; run: omarchy-shell shell rescanPlugins
```
Setup caught the non-zero exit and printed a yellow "could not enable it automatically" under a green "widget installed", so the installer reported success. Running `punktfunk-omarchy setup` a second time worked because the files already existed.
## Fix
Same wait as `omarchy-plugin-add`: `omarchy shell shell rescanPlugins`, then poll `omarchy plugin list` for up to 2 s (40 × 50 ms) before enabling. The manifest also gets `"defaultSection": "right"`: without it Omarchy places a bar widget in the center, between weather and system-update.
## Measured on omarchy-1 (Omarchy 4.0.0.alpha, 192.168.1.6)
| Sequence | Result |
| --- | --- |
| copy, then enable at once (old) | not known, exit 1 |
| same enable 3 s later | Enabled |
| patched `setup_plugin` from a clean state, first try | Enabled in 0.37 s |
| new manifest, disable + enable | widget in `right`, after tray |
Clean state for the reproduction: `omarchy plugin disable punktfunk; rm -rf ~/.config/omarchy/plugins/punktfunk`. Shell log shows no punktfunk warnings after either run.
## Not done
- No retry on `enable` itself: once the id is listed, enable succeeded every time.
- The warn path stays for a box with no running shell (setup from a TTY or ssh before first login); the message already names the command to run.
- No changelog entry: 0.35.0 has no section yet and this is packaging, not ABI.
Checks: `bash packaging/linux/omarchy/selftest.sh` passes with a new stub-based check that `plugin_known` keeps polling; `WRITING_BASE=origin/main scripts/ci/check-writing.sh` passes.
Setup copied the plugin files and called `omarchy plugin enable` in the
same instant. The shell learns of a new plugin directory through inotify
and an asynchronous rescan, so the id was still unknown, enable exited 1,
and setup downgraded that to a warning under a green "installed" line.
Every fresh install ended with the widget on disk and absent from the bar.
The wait is the one omarchy-plugin-add uses: ask for a rescan, then poll
the plugin list for up to two seconds before enabling. On omarchy-1 the
old sequence fails at 0 s and succeeds at 3 s; the new one enables on the
first try in 0.4 s.
The manifest now names `right` as its section. Without it Omarchy puts a
bar widget in the center, between weather and system-update, away from
the network and audio widgets it belongs beside.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
A fresh Omarchy install (
punktfunk-setup→punktfunk-omarchy setup) left the bar widget on disk but not in the bar. Reported on omarchy-1 today, 0.35.0 canary, script byte-identical to main.Root cause
setup_plugincopies the plugin into~/.config/omarchy/plugins/punktfunkand callsomarchy plugin enable punktfunkin the same instant. The shell'sPluginRegistrylearns of a new directory through an inotify watch and an asynchronous bash rescan, so at that moment the id is unknown:Setup caught the non-zero exit and printed a yellow "could not enable it automatically" under a green "widget installed", so the installer reported success. Running
punktfunk-omarchy setupa second time worked because the files already existed.Fix
Same wait as
omarchy-plugin-add:omarchy shell shell rescanPlugins, then pollomarchy plugin listfor up to 2 s (40 × 50 ms) before enabling. The manifest also gets"defaultSection": "right": without it Omarchy places a bar widget in the center, between weather and system-update.Measured on omarchy-1 (Omarchy 4.0.0.alpha, 192.168.1.6)
setup_pluginfrom a clean state, first tryright, after trayClean state for the reproduction:
omarchy plugin disable punktfunk; rm -rf ~/.config/omarchy/plugins/punktfunk. Shell log shows no punktfunk warnings after either run.Not done
enableitself: once the id is listed, enable succeeded every time.Checks:
bash packaging/linux/omarchy/selftest.shpasses with a new stub-based check thatplugin_knownkeeps polling;WRITING_BASE=origin/main scripts/ci/check-writing.shpasses.