Repository navigation
Conversation
…xy#159) With "Replace Explorer" on, the overlay ended the shell Explorer as soon as RunStuffHasBeenRun and StartupHasBeenRun existed. Explorer writes each marker just before its pass, not after it, and then starts the programs one by one, so anything it had not reached yet never started. The overlay now also watches what the shell Explorer starts (its child processes, which covers Startup folder shortcuts and Store apps' startup tasks) and ends it only after 8 s without a new one.
Lemxy
added a commit
that referenced
this pull request
Nov 26, 2026
Fixes: Alt+Tab ignores a still pointer (#183, #116); Performance page details visible in a narrow window (#170); type-ahead in rust-explorer (#130, from PR #167 by GuilhermeProvenci); rs-shell waits for the autostart before ending Explorer (#159, from PR #161 by Tkyoxx); WinRust is listed in Installed apps (#178). New: quick settings tiles for Mobile hotspot, Night light, Project and a media card (#176, #166); Restart / Shut down on the bar (#173); Win+V clipboard history (#171); window magnet (#133); folder sizes (#147), double click on empty space goes up (#139), "Folders first" switch and a Sort by menu (#162).
Owner
Lemxy
added a commit
that referenced
this pull request
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Likely cause of #159 (startup programs do not run with WinRust on).
What
With "Replace Explorer" on,
rs-shell --overlayends the shell Explorer onceRunStuffHasBeenRunandStartupHasBeenRunexist underExplorer\SessionInfo\<session>. Explorer writes each of those keys just before its pass, and then starts the programs one at a time. Ending it at that point loses every program it has not reached yet.Measured on a Windows 10 21H2 sign-in, with Explorer as the shell. Key times come from the keys' last-write time and app times from the process creation time; all are seconds after explorer.exe started:
RunStuffHasBeenRunwrittenStartupHasBeenRunwrittenThe overlay checks every 3 s, so with both keys present it ended Explorer 0–3 s into the Startup folder pass. The same PC's overlay log from an earlier sign-in shows
autostart done (markers: true, after 9 s).Fix
The overlay also watches what the shell Explorer has started, using its child processes. That covers Startup folder shortcuts and Store startup tasks too, which we cannot name in advance.
may_end_explorernow also requires 8 s without a new one. This applies to the markers path, the "everything we expect is running" path and the 90 s grace. On the timeline above, Explorer now goes about 8–11 s after the last program it starts instead of during the pass.winrust_common::procgetschildren(parents), which reuses the snapshot loop oflist()(moved intoeach()).Test
cargo test -p rs-shell:waits_while_explorer_still_starts_programsandnotices_each_program_explorer_starts, plus the existingmay_end_explorercases.cargo test -p winrust-common:lists_the_children_of_a_process.cargo test --workspaceandcargo check --workspace --all-targetsare clean.