Skip to content

mini-oled-dock 1.7.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 20:06
· 4 commits to main since this release
8642a8b

Changes since 1.6.0.

Most of this release is work inside the dock that you will not see. One option is new (Push at the screen edge, off by default). A few things change without you asking; they are listed under their own heading.

Push at the screen edge

Settings, Bar has a new row, Show at the edge, with two choices: Rest (the default, the dock as it was: rest the pointer on the edge for the show delay) and Push. With Push the hidden bar shows when you push the mouse against the screen edge: the pointer has to be on the edge row and move towards the edge by at least push_threshold raw mouse counts within one second (100 by default, 20 to 1000, only in config.json; a lower number means a lighter push). A push shows the bar the way the edge does (at least 2.5 seconds, no show over a full-screen window, the display under the pointer when the bar follows the pointer). Only a mouse that reports relative motion counts: touch, a pen and a remote-desktop session never push.

In config.json the key is "reveal": "dwell" or "push"; any other value reads "dwell". In 1.6.0 these two keys were written but did nothing.

While the bar is hidden and Push is on, the dock listens to raw mouse input only while the pointer is on the edge row, and runs its edge check every 50 ms during that time. With the pointer anywhere else, or with Rest chosen, nothing new runs.

What changes without you asking

  • The exe asks for no administrator rights itself. Until now dock.exe carried a request for them, so Windows asked before it started, for every mode. Now each mode gets the level it needs. The dock, --install, --uninstall, --rollback, --restore, --update-check and --update-install start the same exe again through the consent prompt when they run without rights; the logon task still starts the dock elevated with no prompt. --version, --settings, --list-apps and --preview run at your own level and show no prompt. The modes the dock starts itself (the watchdog, the update guard) refuse to run without administrator rights. From a terminal without rights, --install and the other modes that wait return the exit code of the elevated run, unless you run them from the installed dock.exe. The consent prompt still appears once, as before.
  • System DLLs only. From its first statement the dock loads DLLs from the Windows system folder only, so a DLL left next to a downloaded dock.exe is never loaded by it.
  • A helper at your own level reads the Start catalogue and icons. The Start apps list, the icons of Start, the targets and names of the shortcuts in your own Start menu folder, and the version strings and icons of programs you can write to used to be read by the elevated dock, or by an elevated child of it. A file that a program of yours had planted was then opened by the Windows shell with administrator rights. Now the dock starts dock.exe --agent <nonce> through Explorer, so it runs as you at normal integrity, and asks it. You will see a second dock.exe in Task Manager, at normal level, while it works. It is used only while the dock itself runs elevated. It starts when that work is first needed, ends after 30 seconds without a request, and talks to the dock only through two named pipes that SYSTEM and the user of the desktop shell can open. Each side checks that the other end is this same exe, in the same session, at the right integrity level. When it cannot serve (it does not start, it is late, it fails three times within ten minutes, or the desktop shell itself runs elevated because UAC is off), the dock does the work the old way, as it did in 1.6.0. The log counts which way the Start catalogue and icons were served.
  • A wrong value in config.json loses only its own key. Before, a value of the wrong type in most keys made the whole file invalid and the previous settings stayed. Now the dock reads each key on its own: a value of the wrong type, or outside the range Settings gives the option (a delay, a size, the opacity and the like), is an error of that key alone. The key reads its default, or at a reload its last good value; the rest of the file loads; the log names the key and the line. A value above or below the range now gives the default, not the nearest limit (1.6.0 clamped: "hide_delay_ms": 9000 was 5000 and is now 2500). A syntax error still keeps the previous settings. The file the dock writes has the same keys and layout as 1.6.0's; only the guide line above reveal changed.
  • The look is written to suite\theme.json. The elevated dock writes its look (language, background colour, opacity, the four sizes, and its version) to %ProgramData%\mini-oled-dock\suite\theme.json at its start and whenever the look changes, from a short-lived thread, with a flushed write and a rename. The file is for the suite's other programs, which do not ship in this release; nothing reads it yet. Any user of the PC can read it and only administrators can write it; it holds nothing about you. Delete it and the dock writes it again.
  • --uninstall --remove knows the other programs of the suite. It also deletes tasks.exe, tasks-admin.exe, files.exe, lang\ and suite.json (with their staging and previous copies) if they are in the install folder, and the shortcuts to tasks.exe or files.exe that sit directly in the all-users Start menu Programs folder. This release installs none of them.
  • The dock log starts each run with a line that says whether the dock is elevated, and counts how the Start catalogue and icons were served (agent, helper child, in the dock).

Under the hood (no visible effect yet)

  • The names, identities and icons of programs (the part of the bar and Start that decides what an app is called and which icon it gets) moved into a new crate, oled-shellmodel. apps.rs and shell_thread.rs call it. The output is meant to be the same.
  • The dock's settings are declared once in a table (options!), which also builds the commented config.json and describes each option (its range, its guide, its place in Settings). The text it writes is the same as 1.6.0's.
  • The theme file has a reader and a writer with tests, the role table of the command lines is a tested module (roles.rs), and the frames that a future Tasks and Files will exchange have their codecs and fixtures. None of this runs in the dock yet beyond what is described above.
  • The interface kit and the apps (Tasks, Files, a gallery) that are in the source tree are not part of this release: dock.exe is the only program it ships.

Known limits

  • --recover, --undo-user, --suite-sync, --install --from <folder> and --update-fetch <tag> are accepted by the command line and listed by --help, but only say "not available in this build" and exit with code 2. They belong to later releases. --update-fetch without a tag is the update check's own and works.
  • --agent is for the dock: started by hand it ends at once, because the dock's pipes are not there, and it refuses to run with administrator rights.
  • The helper covers the Start catalogue, Start's icons, the shortcuts of your own Start menu folder and the version strings and icons of programs you can write to. The elevated dock still has the Windows shell read a file that a program of yours could plant for the icons of notifications, the names in the volume mixer and in the tray, the Apps folder name and target of an app, and for version strings when the helper does not answer in time. This is the same accepted residual as before, smaller.
  • A value outside its range in config.json now reads the default instead of the nearest limit. A config.json that holds such a value (a delay above 5000, a size above its maximum) therefore changes its behaviour after the update.
  • 1.6.0 and older do nothing with reveal and push_threshold; a rolled-back dock keeps the two keys in the file, and after a rollback to 1.6.0 the bar shows on a rest at the edge again. After a rollback to 1.6.0 the suite\theme.json file stays where it is and nothing reads it.
  • Push needs a mouse (or a touchpad) that reports relative motion; with a pen, touch, a remote desktop or a mouse driver that reports absolute positions only, use Rest.
  • The limits of 1.6.0 that are not repeated above still hold, among them: the keyboard shortcuts of the bar and their conflicts with other programs, Peek with a slow Win press, a stalled keyboard hook, the Restart Manager closing the dock, and Windows 11 only.

Live checks

Not yet run.

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.


SHA256 of dock.exe: a0c503036031df79cc2131cbb9242a13d70ce8234a56a632267568e28ebcf87b