Skip to content
Youssef M.

Case study · Windows desktop app

DeskPilot

A Windows app to find and open installed programs and keep an eye on the PC, built to run fully offline and to decide in Rust, not in the interface, what is allowed to run.

  • Tauri 2
  • Rust
  • React
  • TypeScript
  • Windows API

A project by Youssef Manssouri

What I built
Built a Rust backend that merges installed apps from the registry and Start Menu, parses shortcuts without running anything and re-validates every launch, with a React interface that only sees opaque IDs.
Verifiable result
The 244 frontend tests pass, and the repository defines 218 Rust tests that the Windows release workflow runs before building the installer.
Status, audience and limitations
For whom:
Windows users who want one offline place to find and open their apps and check their PC.
Status:
Developer preview (v0.1.1). Source code is public; installers are unsigned and not publicly downloadable.
Limitations:
Validated in Windows Sandbox on Windows 11 only; Windows 10 is untested, and App Control blocked the unsigned build on my own PC. The screenshots are real captures of the current build on a Windows Server 2022 GitHub Actions runner, not on a typical home PC.

The problem

Windows records installed programs in several places: three registry locations and two Start Menu folders, with duplicates and broken entries between them. Tools that launch programs often run commands through a shell or ask for broad access to the file system. I wanted a fast, keyboard-first launcher and system overview that works without an account or internet connection, never runs anything while scanning, and only starts programs it has checked.

What I built

Home: apps found, uptime, live CPU and memory, and entries that need attention. A real capture on a Windows Server 2022 machine (a GitHub Actions runner).
Apps: each entry is marked Ready, Unverified, Limited info or Missing when it is scanned, and only Ready apps can be opened. The icons are each program’s own, read from its .exe without running it.
Quick launcher: a global shortcut opens a small search window from any app.

Key decisions

  1. The interface never sees file paths

    The web interface is treated as untrusted. It receives app IDs, names and statuses, and a launch request carries only an ID that the Rust backend checks against the format app_ plus 32 hex characters. The window has Tauri’s default permissions only: no file-system, shell or opener plugins.

    Trade-off: Every new feature that needs data from the system needs its own typed backend command, instead of reading it from the interface.

  2. Shortcuts are parsed, not opened

    Start Menu .lnk files are read by a small Rust parser with a 64 KiB limit, instead of asking Windows shell handlers to resolve them. Nothing is executed during discovery, and entries found in several sources are merged under a stable ID derived from a SHA-256 hash.

    Trade-off: A program registered without a direct path to its .exe is listed as unverified and cannot be opened, and Microsoft Store apps are not discovered at all.

  3. Every launch is checked again

    Before starting a program, the backend checks that the target is a local .exe, resolves its real path, refuses temporary and Downloads folders, and starts it directly without cmd.exe or PowerShell and without arguments.

    Trade-off: DeskPilot cannot pass launch arguments, and a program that needs administrator rights gets a permission message instead of an elevation prompt.

What I learned

Passing tests is not the same as working on a real PC. The automated suites pass, yet Windows App Control blocked the unsigned build on my own machine, and Windows 10 is still untested. Writing down exactly what was and was not validated turned out to be as important as the code.

Check it yourself