Skip to content

Start the watcher from the Run key instead of a logon task (Lot 19) - #31

Merged
geeooff merged 1 commit into
mainfrom
lot-19-startup
Nov 16, 2026
Merged

geeooff merged 1 commit into
mainfrom
lot-19-startup

Conversation

@geeooff

@geeooff geeooff commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Office's updates end what a logon task started and spare what the HKCU Run key started (Lot 19's spike, #30). The Run key is also what Settings lists under Apps → Startup, with a switch.

  • startup writes and removes the GameModeExecutor value, and keeps an existing one unless --force.
  • The watcher is started by Explorer, through the desktop's shell automation object, so its parent is the one a logon gives it. If Explorer cannot be asked, that is a warn, and the next logon starts the watcher.
  • task only removes the logon task a 0.4 copy leaves.
  • The verbs are add-to-startup and remove-from-startup. install-task and uninstall-task stay as hidden aliases until 1.0.0; --delay is gone.
  • The package names only the new actions, in the old ones' places. No Registry row and nothing specific to 0.4.
  • The zip's updater and its failure path run add-to-startup, and purge removes the entry, its switch and a leftover task.
  • The user pages, the reference, the changelog, AGENTS.md, the VS Code tasks and the zip's README are updated.

Measured on 2026-11-16 (details in docs/design/19-startup-list.md):

  • Explorer started the watcher from a terminal and from the package's deferred action; its parent was explorer.exe both times.
  • The 0.4 task was removed, and the 0.4 package's uninstall-task worked through the alias.
  • With the switch off, the running watcher went on and nothing started at the next logon. With it back on, the watcher started 7 s after Explorer.
  • remove-from-startup also takes the switch's entry, and purge lists the entry.

Left for 0.5.0:

  • an upgrade from the published 0.4.0, by the package and by the zip;
  • the watcher outliving an Office update;
  • a real purge.

🤖 Generated with Claude Code

Office's updates end what a logon task started and spare what the HKCU
Run key started (Lot 19's spike, 2026-10-17 to 2026-11-16), and the Run
key is what Settings lists under Apps > Startup, with a switch.

- `startup` writes and removes the `GameModeExecutor` value, keeps one
  that is there unless --force, and has Explorer start the watcher through
  the desktop's shell automation object, so its parent is the one a logon
  gives it. A failure to start it now is a warn; the next logon starts it.
- `task` only removes the logon task a 0.4 copy leaves, from
  add-to-startup, remove-from-startup and purge.
- The verbs are add-to-startup and remove-from-startup; install-task and
  uninstall-task stay as hidden aliases until 1.0.0, for a 0.4 zip copy's
  updater. --delay is gone with the task.
- The package names only the new actions, in the old ones' places; the
  updater's failure path runs add-to-startup instead of schtasks /Run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@geeooff
geeooff merged commit 8e4b83e into main Nov 16, 2026
2 checks passed
@geeooff
geeooff deleted the lot-19-startup branch November 16, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant