Skip to content

rust-search on Windows 10, Win+S - #151

Open
Tkyoxx wants to merge 3 commits into
Lemxy:mainfrom
Tkyoxx:pr/3-search-win10
Open

Tkyoxx wants to merge 3 commits into
Lemxy:mainfrom
Tkyoxx:pr/3-search-win10

Conversation

@Tkyoxx

@Tkyoxx Tkyoxx commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Stacked on #144, #148. Until those are merged this branch also carries their commits, so the diff below is bigger than this PR. Its own change is 1 commit; I will rebase it as soon as #148 is in.

What

  • Win+S / Win+Q open the card on Windows 10 and 11 (LL keyboard hook on its own thread, set again every 30 s like topbar's; Win+Shift+S stays the snip; the key still goes down the hook chain so topbar's Start knows Win was not pressed alone).
  • Windows 10's search window (SearchApp.exe / SearchUI.exe) is left alone on purpose: Explorer keeps activating it, and with it blocked through IFEO every activation waited out DCOM's timeout, which froze the desktop right-click menu for seconds (found on Windows 10 21H2, System log DCOM 10010). Win+S reaches the hook first and, with WSearch off, the old window has nothing to search. Windows 11's SearchHost.exe is blocked as before.
  • Alt+Space and Win+S can each be switched off from a gear on the row (%ProgramData%\WinRust\search-keys.txt, live through the broadcast).
  • A taken Alt+Space is not fatal any more; a named mutex keeps one launcher.
  • The installer's settings panels are generic (one gear per plugin).

Test

  • common test for search-keys parsing; cargo test in rust-search.
  • Windows 10: after install, Win+S opens the card and the desktop right-click menu opens at once. Windows 11: Win+S opens the card, SearchHost.exe stays blocked, uninstall brings Windows Search back.

- winrust-common: Lang::Es and Lang::ALL; t!/tf! take an optional es: arm
  after zh: (or after pt: in calls without zh:), and any language left out
  shows the English text, so nothing is ever blank or a raw key.
- No lang.txt: the Windows UI language when WinRust has it, else English.
- lang() re-reads lang.txt at most once a second and set_lang broadcasts
  style::msg(), so open windows switch without a restart: topbar now listens
  for the broadcast, rust-settings rebuilds its pages and rust-explorer its
  column headers and navigation pane when the language moved. The "restart
  the programs" notes say the switch is immediate now.
- The installer list, rust-settings and the bar's language page take their
  languages from Lang::ALL (Spanish included); --lang accepts es.
- Spanish for every t!/tf! call (1,246), the installer table, the Run box
  commands and the Start button menu, plus the few strings still English-only
  in rust-explorer.
- rs-launcher's counts gave "2 registry entrys" and Portuguese had no plural
  at all: every language now spells out its singular and plural.
…a switch

rust-explorer used to be the file manager and the Explorer replacement in one
step, so it could not be installed without topbar. Now:

- Its row installs the file manager only: folder/drive verbs and the Start
  menu shortcut. Explorer stays the shell with its own desktop and taskbar; no
  service tweaks, no rs-overlay task, no AutoRestartShell change.
- "Replace Explorer" in topbar's settings panel is the shell part. Turning it
  on ticks topbar and rust-explorer; unticking either turns it off. Turning it
  off later hands the session back to Explorer and keeps the file manager.
- An installed rust-explorer whose switch moved shows "Will be changed" and is
  installed again; giving the shell back runs before anything else in the
  same run, so topbar is never removed while it is the only bar.
- Express never moves the shell; a plain update keeps the current mode.
- Uninstalling topbar while rust-explorer is the shell gives the shell back to
  Explorer first (command line included).
- Command line: install/update rust-explorer [--shell|--no-shell]; --shell
  pulls topbar in when it is missing.
- The upstream rs-overlay start (schtasks /run, shortcut as the fallback) is
  kept as is, it just lives in the shell part now.
- Win+S / Win+Q open the card through a low-level keyboard hook on its own
  thread, set again every 30 s like topbar's. Win+Shift+S stays the snip; a
  dummy key keeps Start from opening on release, and the key still goes down
  the hook chain so topbar's Start knows Win was not pressed alone. On Windows
  10 that was the missing piece: SearchHost.exe (the window that is blocked)
  is Windows 11's, so Win+S kept opening Windows Search there.
- Windows 10's own search window (SearchApp.exe / SearchUI.exe) is left
  alone on purpose. Blocked, it made Explorer wait out DCOM's activation
  timeout every time it asked for it (System log 10010, TWinUI 5961), which
  froze the desktop's right click for seconds. With WSearch off it has
  nothing to search, and Win+S no longer reaches it.
- Alt+Space and Win+S can each be switched off from a gear on rust-search's
  row (%ProgramData%\WinRust\search-keys.txt, applied live through the style
  broadcast). At least one stays on.
- A taken Alt+Space is no longer fatal (said once, off the UI thread); a
  named mutex keeps one launcher per session instead.
- The installer's settings panels are generic now: one gear per plugin with
  options, the panel sized to its switches. topbar's keeps OneDrive and
  "Replace Explorer".
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