Skip to content

mini-oled-dock 1.5.1

Choose a tag to compare

@github-actions github-actions released this 24 Nov 01:16
· 7 commits to main since this release
18f2762

Changes since 1.5.0: an updater that checks more and puts the old version back when a new one fails, a dock that does less while its bar is hidden, and a log with no window titles.

A quieter hidden dock

These changes are meant to make the hidden, idle dock do less: each was a periodic wake-up or a repeated call that did nothing useful while you were not looking at the bar. This list says what was changed in the code; no measured figure is claimed here.

  • No notification read while the bell cannot be seen. The notification list is read once when the bar is shown, every 2 seconds while it is shown, and faster only while the notification popup is open. While the bar is hidden nothing is read. While the bar is shown the read stays, because the bell's badge needs it.
  • The keyboard hook is reinstalled only while you are active, not every 2 seconds for as long as the dock runs. It is re-armed by a key press, a change of the foreground window, the bar showing or hiding, and a resume from sleep, and it stops after a quiet period.
  • The watchdog waits longer between checks. It wakes once per 3.3 seconds instead of once per second, and an idle dock now signals it every 3 seconds. A dock that stops answering is still restored after 6.6 seconds of silence, as before.
  • The screen-edge check runs only while the bar is shown or the pointer has moved. While the bar is hidden and the mouse is still, it waits for the pointer's first movement instead of polling every 50 ms.
  • Edits to config.json are applied when the file changes, not by looking at it every 2 seconds. If Windows cannot give the dock that notification, it falls back to the old check and says so in dock.log.
  • Housekeeping timers follow the state of the bar. The reconcile, blink, memory-line, housekeeping and hidden-trim timers run only in the states that need them.
  • Window events that cannot change the bar are dropped before they reach it, and the dock's shell thread keeps its 1-second timer only while an icons child process exists.

Updates

  • GitHub's digest is checked too. The updater already compared dock.exe with the .sha256 published in the same release. It now also compares it with the SHA-256 that GitHub itself computes for the uploaded file, which is served by another address. A mismatch stops the update. If GitHub sends no digest, the update is checked against the .sha256 alone, as in 1.5.0. The release workflow also builds with CI's pinned toolchain and fails if the uploaded file's digest differs from the built one.
  • The update guard. Each update is judged by the version you had. The old version installs the new one, starts it, and puts itself back if the new dock exits, or if its window has not answered within 30 seconds (at most 60). Settings → Updates then says "Update to X rolled back" ("Aggiornamento a X annullato"). A rolled-back release is not installed again automatically; Update now retries it. The update from 1.5.0 or older to 1.5.1 is the last one that no guard judges: those versions do not have it.
  • The previous version is kept as %ProgramFiles%\mini-oled-dock\dock.prev.exe at every upgrade by --install. To go back, run dock.exe --rollback (elevated; add --quiet for no message); if dock.exe does not start at all, run dock.prev.exe --install. --uninstall --remove deletes it with the rest of the folder.
  • Settings of a newer version survive an older one. A top-level key of config.json that the running version does not know is kept as it is when the file is saved, so going back and forth between 1.5.1 or later keeps the newer version's settings.
  • dock.exe --update-install <tag> now starts the guard and must be run from the installed dock.exe.

Taskbar

  • The dock is meant to hide the taskbar again after a watchdog restore. If the dock stops answering for more than about 6.6 seconds, its watchdog gives the Windows taskbar back. In 1.5.0 and older the dock, once it answered again, stopped hiding the taskbar for good until a restart. Now it is meant to hide it again, but only if its watchdog is still running and the restore was not one you asked for (--restore, --install, --uninstall, Exit).
  • A sign-out or shutdown is meant to keep the saved taskbar state, so the next sign-in reads your own setting instead of the auto-hide that Explorer had saved while the dock hid the taskbar.
  • Explorer's saved auto-hide setting is set back to off after a restore when your original setting was not auto-hide. Before, a taskbar restored after an uninstall could come back in auto-hide, and the next start of the dock then took that as your original.
  • Starting the dock no longer takes the keyboard from a fullscreen app. The bar still shows for a moment when the dock starts (sign-in, an update, a restart), but it does not take the foreground unless the dock is started with --foreground. In 1.5.0 and older, a start while a game or a video was in front took its focus for a few seconds.

Tray

  • Tray icons without a GUID keep their position and visibility across restarts. A program that picks a new internal id at every start used to lose its hidden or ordered place each time. The dock now keys such icons by program and place (name.exe|0) and rewrites the old keys in config.json the first time the program's icons are seen; nothing is dropped. Going back to 1.5.0 or older: those versions do not know the new keys, so such icons hidden after the change show again and those ordered after it return to the default order. Icons with a GUID are not affected. Copy config.json first if you may go back.

Logs and privacy

  • dock.log carries no window titles and no tooltips. A window the dock has to mention is named by its class. A test fails the build if a log call names a title or a tooltip.
  • One clock in the log. The dock and its watchdog now write local wall-clock times, and each start leaves a marker line.
  • No false error lines at start. The DPI call and a refused breakaway from the scheduled task's job are no longer logged as errors.

Fixes

  • Per-user Start menu shortcuts are no longer parsed by the Windows shell in the elevated dock. The dock reads these .lnk files with its own parser; a shortcut to a Windows program keeps its localized name. Known residual: some per-user shortcuts and some user-writable programs are still resolved or read through the shell in elevated processes (the Start apps list and its child process, app names and icons from the Apps folder, version strings and icons of programs). This is accepted for this release.
  • The audio popup scrolls when its list of devices and apps is taller than the room above or below the bar (a short or scaled screen); the footer stays in view.

Known limits

  • This list says what was removed from the hidden dock, not by how much, and nothing here is claimed for a bar that is shown beyond what is listed.
  • The update guard judges whether the new dock keeps running and answers; it does not check that the taskbar is hidden. The exe is not code-signed.
  • Going back to 1.5.0 or older with automatic install on makes that version install the newer release again at its next daily check: switch it off first. Settings that only 1.5.1 knows go back to their defaults at that version's first save.
  • The taskbar, watchdog and update changes of this release were checked by tests and by review, not yet by a long run on many machines. If the dock misbehaves after the update, dock.exe --rollback (elevated) puts 1.5.0 back, and dock.exe --restore gives the Windows taskbar back.
  • Only Windows 11 is covered.

Install / update

Requires Windows 11. Download dock.exe and run it from a terminal:

.\dock.exe --install

It asks for administrator rights, replaces the installed dock and restarts it. Settings are kept. Or use Settings → Updates → Update now from a running 1.4.2 or later. The launcher stays as you left it (off until you choose a shortcut).


SHA256 of dock.exe: 7e9f5b5f1d731b3ea975cdc1633716b7ea5457a2bf8f4bc9fd69895ede0b1c57