@punktfunk/plugin-ubisoft

Adds your installed Ubisoft Connect games to a Punktfunk host's library, with the session ending when you quit the game.

Install it from the host's plugin store (Library → Game sources → Add a source), or:

punktfunk-host plugins add ubisoft

Nothing to configure. Windows hosts only: Ubisoft Connect has no Linux client, so on Linux the source reports "absent" and lists nothing — Heroic or Lutris cover Ubisoft titles there.

What it reads

Ubisoft Connect registers every install in the registry, and that is all this plugin touches:

  • SOFTWARE\Ubisoft\Launcher\Installs\<gameId> — one subkey per installed game; its InstallDir is where the game lives. A machine-wide client writes it under HKLM\SOFTWARE\WOW6432Node; a current per-user client writes it in the user's own hive, so the plugin reads HKLM, then HKCU, then every signed-in user under HKU\<SID>, and keeps the first record per game. Records without an InstallDir, or whose folder no longer exists, are skipped.
  • HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Uplay Install <gameId> — its DisplayName is the title. When Ubisoft wrote none, the install folder's name is used.

Covers, the publisher and the game's own exe come from Connect's configurations cache (%LocalAppData%\Ubisoft Game Launcher\cache\configuration\configurations), which names each image on Ubisoft's asset CDN. The scan reads the file offline; clients fetch the images. The cache sits in the user's profile; the manifest names its folder, so a current host opens that one folder to the plugin, and an older host asks for it in the console. Without it the games sync without covers.

Letting the host read your hive

The plugin runs in its own sandbox under the host's plugin runner. Its manifest names HKCU\SOFTWARE\Ubisoft\Launcher and the configurations cache, and a current host grants both read-only in every signed-in account. An older host does not, so games a per-user Ubisoft Connect installed stay invisible until you grant read access once. In PowerShell, as the user who installs Ubisoft games:

$k = 'HKCU:\SOFTWARE\Ubisoft\Launcher'; $acl = Get-Acl $k; foreach ($s in 'S-1-5-19', 'S-1-15-2-759459035-614500287-4096540242-2240005479-3733271821-3489008226-728592858') { $acl.AddAccessRule((New-Object System.Security.AccessControl.RegistryAccessRule((New-Object System.Security.Principal.SecurityIdentifier $s), 'ReadKey', 'ContainerInherit', 'None', 'Allow'))) }; Set-Acl $k $acl

The two SIDs are the runner (NT AUTHORITY\LocalService) and this plugin's own sandbox; Windows lets the plugin read only what both may. That adds two inheritable read-only entries on Ubisoft\Launcher and everything below it — nothing else in your profile becomes readable. The hive is only loaded while you are signed in, which on a streaming host you are. To check what the runner would see, punktfunk-plugin-ubisoft scan --preview run as yourself lists the same games through HKCU.

How launching works

Launching hands off to Ubisoft Connect (uplay://launch/<gameId>/0), which starts the game itself — so Connect must be signed in, and the host never owns the game's process directly. Each entry carries its install directory as a detect hint, which is how the host still tells when the game exits and ends the streaming session instead of leaving you on a bare desktop.

Entries are published as ubisoft:<gameId>, the id Ubisoft itself uses for the title.

Commands

punktfunk-plugin-ubisoft detect            # is Ubisoft Connect installed on this host?
punktfunk-plugin-ubisoft scan --preview    # what WOULD be synced, as JSON (works with no host)
punktfunk-plugin-ubisoft uninstall         # drop the games and release the store claim

The kit's parity verb is there too, but it has no baseline for this store: Punktfunk never had a built-in Ubisoft scanner, so there is nothing to compare against. scan --preview on a host with games installed is the release check.

Development

bun install
bun run typecheck && bun test && bun run build

The framework — store claim, sync engine, __config, CLI verbs, and the registry reader — lives in @punktfunk/plugin-kit/library. This package is the Ubisoft-specific part: walk the Installs keys, normalize InstallDir, look up the title, map to entries. The unit tests pin that mapping against real reg.exe output, so they run without Windows.

Use of AI

This project uses AI for writing code.

License

MIT OR Apache-2.0.

S
Description
A Punktfunk plugin that adds your installed Ubisoft Connect games as a library source
Readme
184 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 100%