Skip to content

Vault Basic 2027 client: start Vault Explorer, fix its drawing above 96 DPI, menu entry - #8

Merged
Harvi654 merged 10 commits into
Harvi654:mainfrom
Lukas10999:vault-launch
Dec 5, 2026
Merged

Harvi654 merged 10 commits into
Harvi654:mainfrom
Lukas10999:vault-launch

Conversation

@Lukas10999

Copy link
Copy Markdown
Contributor

I have to prefix this with that I am kind of breaking one of the rules here, but I don't see a better way to do it, since Vault is so tightly integrated.

TL;DR: Got Vault working as standalone and in Inventor.

Claude:
Vault Explorer and Inventor's Vault add-in (Vault Basic 2027 client) work with Inventor 2027: open from Vault, check out, check in, and a Vault-type project with its workspace on D:. Three commits plus docs:

  • INV_APP=vault in launch-inventor.sh starts Vault Explorer instead of Inventor, with Identity Manager and the licensing service as for Inventor, because an Inventor opened from Vault needs both. Vault Explorer starts from its own folder: its .NET host uses the working directory as content root, and a Linux folder has no drive letter under isolation (DirectoryNotFoundException for ...\unix\home\...). The launcher waits for an Inventor that Vault opened before it runs wineserver -k. Started while Inventor or Vault already runs, it only starts Vault Explorer.
  • Vault Explorer system DPI aware (IFEO dpiAwareness=1, which Wine's user32 reads at process start). Vault is DPI unaware, so above 96 DPI Wine scales its surface. The CefSharp start page is a child window from another process and is drawn unscaled, so the page appears shifted to the left with a black area where it belongs, and the login dialog shows doubled labels. At 96 DPI all of it was gone. With system awareness Vault scales itself.
  • Menu entry "Autodesk Vault " from install-desktop-integration.sh when Vault Client <year>\Explorer\Connectivity.Vault.exe is in the prefix, with its icon. It's removed again when the client is absent, and on --uninstall.

One deliberate exception to "one Autodesk program per prefix": the Vault client goes into the Inventor prefix, because its Inventor add-in has to sit next to Inventor (as on Windows), and Vault Explorer starts that Inventor. If you'd rather handle this differently, I'm happy to change it.

The install used the existing install-from-image.py --app vbc with --only, leaving out .NET Framework 4.8 with its language packs (Vault 2027 is .NET 10, already in the prefix) and DWG TrueView. The docs section describes it. No new downloads, so nothing for nix/.

Not in this PR: the dark-theme menus in Vault are invisible under KWin (behind their shadow). That's a winex11 draft patch I'll send separately. Content Center from the Vault server and Vault 2026 weren't tried.

Tested: Arch (CachyOS), KDE Plasma 6 on Wayland with Xwayland, 144 DPI, RTX 5080, Inventor 2027 + Vault Basic Client 2027 against a Vault Basic 2027 server. Also bash -n, python3 -m unittest discover -s tests (OK), and the menu entry with a fake prefix in a temporary HOME (install and --uninstall, with and without the Vault executable).

Docs: a section "Vault Basic 2027 client" in docs/arch-hyprland.md (problem table, how the DPI cause was found, notes for a Wine bug report, level), a result log entry and a README status row.

🤖 Generated with Claude Code

@Lukas10999
Lukas10999 requested a review from Harvi654 as a code owner November 7, 2026 16:40
@Harvi654

Harvi654 commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Thanks for getting both Vault Explorer and the Inventor add-in working, and for testing check-in/check-out against a real Vault server. I had planned to investigate Vault too, so this is a useful contribution.

My current priority is finishing the work already in progress and stabilising some substantial changes to the installer and prefix setup.

One change concerns the .NET Framework components currently relying on Wine Mono. I now have 3D PDF working with native .NET Framework 4.8 plus a Wine patch, and I’m integrating that into the installation process. This does not replace the modern .NET runtime used by Inventor/Vault. The shared prefix needs a consistent dependency setup that both applications can reuse.

GPU ray tracing is also working with the tested Wine/vkd3d patches. For the status-bar overdraw, we have a tested per-application workaround: Wine’s X11 driver through XWayland with ClientSideWithRender=N. Some window-state and WebView repainting issues remain open, so I’m keeping those under investigation.

Regarding the prefix rule: I’m comfortable treating Inventor and its matching Vault client as one integration group in the same prefix. Your explanation makes sense. We should document this as an intentional exception, while keeping unrelated applications and different Inventor releases isolated.

Please feel free to continue developing and testing Vault support. To keep integration manageable, I’d like us to follow these principles:

  • Keep Vault optional and reuse the existing installation, launcher and service helpers rather than introducing a parallel setup path.
  • Keep Wine-side fixes in winum, separate from installer changes, with documented evidence, focused tests and cross review. Please keep the dark-menu patch separate and check it against the existing winex11 patches.
  • Test the shared application lifecycle carefully: launching Vault while Inventor is running, opening Inventor from Vault, and closing either application without terminating the other.
  • Document the exact tested versions, DPI configuration, dependencies and remaining limitations. Keep untested cases such as Vault 2026 and Content Center explicitly marked. Any future downloads should remain version-pinned and checksum-verified.
    I’d like to include Vault in a future release if the review and validation are ready. Your branch can keep moving while the installer changes settle; we can then rebase and integrate it in manageable steps.

The goal is to preserve the functionality you’ve demonstrated while making the installation and shared-prefix behaviour reproducible and maintainable. Thanks again for contributing this and documenting your findings.

@Lukas10999
Lukas10999 force-pushed the vault-launch branch 2 times, most recently from 0f645d9 to 4446ea8 Compare November 16, 2026 01:31
@Harvi654

Copy link
Copy Markdown
Owner

Thanks for updating it. A lot has landed on main since your base (6 Nov): the installer review (#14), Nix layers (#17), winum's vkd3d-proton (#19) and the default add-ins (#20), plus migrations 0005-0010. So:

  • please rebase onto current main; launch-inventor.sh and the migration runner changed in between;
  • 0005 is taken (Inventor's registration): renumber yours to the next free number (0011 after Turn the default-disabled add-ins on, except the Assistant #20) and regenerate SHA256SUMS;
  • once rebased, I'll review it against the points from 7 Nov (Vault optional, reusing the launcher; Inventor and Vault running together and closing either without ending the other; tested versions and DPI documented).
    The next release goes out without Vault; it can be in the one after.

@Lukas10999

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (46c41e9, after #24), and the migration is now 0012-vault-dpi-aware with SHA256SUMS regenerated. Seven commits, tests/ passes (236).

On your points from 7 Nov:

  • Optional, reusing the existing path: Vault is only installed with install-from-image.py --app vbc, and it uses the same launcher, services, migrations and desktop-integration script (INV_APP=vault). No separate setup.
  • Lifecycle: your list caught a real bug. Only an Inventor that Vault opened was waited for, so with both started from their menu entries, closing one killed the other (wineserver -k), and starting Inventor while Vault ran set the prefix up again and wiped the running Identity Manager's state. Fixed in "launch-inventor.sh: keep the prefix while Inventor or Vault still runs": the second program only starts the program, and the prefix is shut down when neither runs there any more. Processes are matched by the WINEPREFIX in their environment, so another release in its own prefix doesn't count. Tested from the menu entries: Vault started while Inventor runs, Inventor started from Vault's menu and by opening a file in Vault; closing either leaves the other running, the prefix shuts down after the last one.
  • DPI as a migration: the dpiAwareness=1 for Connectivity.Vault.exe that the launcher used to write at Vault's first start is step 0012 now. It is set in every prefix: the value only acts when a program of that name runs, so a prefix without the Vault client is unchanged in effect and one that gets the client later is ready. Upstream's test suite also caught that the desktop-integration script exited under pipefail when no Vault client is installed; fixed in that commit.
  • Integration group: the docs call it that now, with unrelated programs and other releases still in their own prefixes, and AGENTS.md names the exception next to the rule.
  • Versions and limits: the Vault section lists exactly what was tested (Inventor 2027 31.0.19200, Vault Basic 2027 Client 32.0.71.0 against a Vault Basic 2027 server, 144 DPI, KDE Plasma 6 / Xwayland, NVIDIA). The tests on this branch were on wine-inventor-11.20-6; I will rerun the lifecycle on winum-11.20-2 and note it. Vault 2026 and Content Center from Vault stay marked as untested. Vault adds no downloads.
  • Dark menus: goes to winum as a candidate (patches/candidates/winex11-unmanaged-before-map/ plus a reproducer), separate from this PR. It applies on top of winum's winex11 series including owner-managed-async and stale-map-activation. A second model cross-reviewed it; paired user32 win/msg runs (unpatched vs patched, twice each) show no new failures. No ok() test, because only the X window's override-redirect attribute changes, which user32 can't see; the reproducer checks it from the X side.

The release after the next is fine.

Separately, I have SpaceMouse support (a siappdll.dll that reads spacenavd, with buttons and a radial menu, tested with a SpaceMouse Wireless and Enterprise). It's not a Wine change, so I'd open it as its own PR here. No rush.

@Harvi654

Copy link
Copy Markdown
Owner

Thanks - this covers every point from 7 and 16 Nov, and the lifecycle fix is exactly what that list was for. Reviewed: launch-inventor.sh, install-desktop-integration.sh, migration 0012 (Wine's user32 reads dpiAwareness from Image File Execution Options in SYSPARAMS_Init, so the value is honoured as described), SHA256SUMS, the migration tests and AGENTS.md in full; the docs section skimmed.

Before merging:

  • please rerun the lifecycle tests on winum-11.22-1 (the current winum release, which Inventor moves to next; main still pins 11.20-2 until that PR) and note the version in the docs, as you planned;
  • I'll approve the CI run for the fork.

Order: I'd merge this one first and #25 afterwards (both touch launch-inventor.sh), so #25 will need a small rebase. Both can go into v0.5.0. The dark-menu candidate is welcome as a separate PR in winum.

@Lukas10999

Copy link
Copy Markdown
Contributor Author

Lifecycle rerun on winum-11.22-1, all green: Vault from its menu entry while Inventor runs, closing Vault leaves Inventor, Inventor opened from Vault and closed leaves Vault, prefix shuts down after the last one; part, assembly, save/reopen, restart. Noted in the Vault section's tested-setup table and a paragraph (commit "docs: Vault lifecycle rerun on winum-11.22-1").

The prefix went from wine-inventor-11.20-6 to winum-11.22-1 through migrations 0002 to 0012 in one start, which worked. One finding from it: 0010 turned Autodesk.InteractiveTutorial on, and on this prefix (Wine Mono, no .NET Framework 4.8) its DLL crashed the Mono runtime right after the splash at every start ("Can't find custom attr constructor image: ...InteractiveTutorial.dll", then a native crash in CCWInvokeInternal). addins.sh disable InteractiveTutorial fixed it. So that add-in probably needs the same .NET 4.8 gate as SharedViews in 0010; I can send a small follow-up if you want it from me.

Ready for the CI run from your side.

@Harvi654

Copy link
Copy Markdown
Owner

Thank you - that is a real regression in v0.4.0, not a Vault detail: every v0.3.x installation has no .NET Framework 4.8 (the release notes say so), and 0010 turns InteractiveTutorial on unconditionally, so every upgrade from v0.3.x crashes at start. I confirmed it in 0010: only SharedViews is gated on dotnet48_present. I'll take a look at it and fix it right away.

krokosik pushed a commit to krokosik/Autodesk-Inventor-for-Nix that referenced this pull request Nov 23, 2026
Migration 0010 (v0.4.0) turned the Interactive Tutorial add-in on in
every prefix, but it was only tested with .NET Framework 4.8. On Wine
Mono - every installation from before 2026-11-11, so every v0.3.x
installation upgraded to v0.4.0 - Inventor crashed right after the
splash at every start (found by Lukas10999 in Harvi654#8; disabling the add-in
fixed it).

Migration 0012 moves the add-in back to Addins.disabled in a prefix
without .NET Framework 4.8 and leaves its libraries in Bin, as in the
tested workaround; with .NET 4.8 nothing changes. 0010 stays as it is
(old migrations are never edited). The add-in joins INV_DOTNET48_ADDINS,
so a reinstall, addins.sh enable-safe and reset keep it off without
.NET 4.8 and on with it. Tests cover both cases, an add-in in both
folders and addins.sh; the tests that encoded the old behaviour change.
Release notes for v0.4.1 drafted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Harvi654 added a commit that referenced this pull request Nov 24, 2026
The maintainer wants products' add-ons (Vault, Nastran, ...) to be
addable to an existing prefix from a universal GUI, PR #8 folded in, and
the installer hardened first. Order it bottom up: close the winum
release, harden the core with its safety net, Create Installer as the
input, components on the command line (Vault PR #8 as the first
companion component), then JSON events and the GUI with a Manage prefix
view, then more products.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Harvi654 added a commit that referenced this pull request Nov 24, 2026
Users ask about Autodesk's companion products. List them in one place
with their state: Nastran works in testing and becomes installable into
an existing prefix with the new installer after the next winum release;
Vault (PR #8) and Tolerance Analysis are planned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each Inventor add-on has its own Create Installer (maintainer's list,
2026-12-05). Vault's, Create_Installer_PLC0000006_2027_1_..., builds
"Vault Basic 2027 (Client) - (EN)" with manifest/app.vbc.xml (measured
the same day); its code says nothing about Vault, so the product
profile, not a name pattern, decides what a download is.

- Inventor's profile gets create_installer: product INVPROSA -> app
  inventor, add-on PLC0000006 -> app vbc (optional key, validated).
- create_installer.py classify names a download's product, role,
  app and release; make takes the image of that app (it took only
  Inventor's before).
- install.sh: an add-on's image goes into Inventor's prefix of the same
  release with install-from-image.py --app vbc, after the updates
  (step "Updates and add-ons"); without an Inventor there it stops and
  says to install Inventor first; Create Installers of other products
  (AutoCAD, Revit) are refused with their name. The release is read
  from an add-on's name too.
- GUI: an add-on is listed ("add-on: Autodesk Vault Basic client") and
  ticked by hand, not preselected.

Also corrected: the Nastran image seen under C:\users\Default was the
user's own ~/Downloads behind a link Wine makes in a new prefix, left
from the research of 2026-12-03, not something the tool built. The plan
records that Autodesk Access is not run; updates come from newer
Create Installers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lukas10999 and others added 9 commits December 5, 2026 02:03
Vault's .NET host uses the working directory as content root; started
from a Linux folder without a drive letter (no Z: with isolation) it
fails with DirectoryNotFoundException. Start it from its own folder,
after the Identity Manager and Licensing Service, so Inventor opened
from Vault can license. Wait for that Inventor before the cleanup trap
runs wineserver -k.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Above 96 DPI Wine scales the windows of a DPI-unaware program. Vault's
CefSharp start page is a child window owned by the browser subprocess,
which Wine draws unscaled: the page lands in the wrong place and the
pane it belongs in stays black (the add-in login in Inventor drew its
labels twice as well). With dpiAwareness=1 in Image File Execution
Options Vault scales itself and all of it renders correctly at 150 %.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
With the Vault client in the prefix (install-from-image.py --app vbc)
there was no way to start Vault Explorer from the application menu; it
needed INV_APP=vault on the command line. The script now adds
"Autodesk Vault <year>" next to the Inventor entry, with the icon taken
from Connectivity.Vault.exe and the same prefix pinned in Exec. Without
the Vault client the entry is removed again; --uninstall removes it too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A section in docs/arch-hyprland.md (why it shares the Inventor prefix,
how it was installed from the image, the start, the two problems and
how the DPI cause was found, notes for a Wine bug report), a result log
entry and a row in the README status table.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Only an Inventor that Vault opened was waited for. Started from their
own menu entries, the second program ran in the first one's prefix, and
the first launcher to finish killed it with wineserver -k: closing
Inventor closed Vault Explorer too, and the other way round. Worse, an
Inventor started from its menu entry while Vault ran set the prefix up
again and wiped the running Identity Manager's IPC state.

Now a launcher starts only the program when the other one already runs
in the same prefix, and every launcher waits until neither runs before
it shuts the prefix down. "Runs in the same prefix" is told by the
WINEPREFIX in the process environment, which Wine passes on to programs
started from Wine too (checked with a child of cmd.exe), so an Inventor
of another release in its own prefix keeps neither alive.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
As agreed in the review of this pull request: Inventor and the Vault
client of the same year share a prefix as one integration group, an
intentional exception to one release per prefix, while unrelated
programs and other releases stay in their own prefixes. AGENTS.md names
the exception next to the rule.

The docs now list the exact tested setup (versions, Wine build, desktop,
DPI, GPU, dependencies) and say that Vault stays optional and uses the
same launcher, services and menu-entry script as Inventor.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The launcher wrote dpiAwareness=1 for Connectivity.Vault.exe into Image
File Execution Options at the first start of Vault Explorer. Since the
prefix migrations (2026-11-11) every change to what a prefix gets is a
numbered step, so this is now 0012-vault-dpi-aware: set once in every
prefix, with the usual backup, state and "already so" check. The value
acts only when a program of that name runs, so a prefix without the Vault
client is unchanged in effect and one that gets the client later is ready.
The launcher only points at the step.

tests/test_migrations.py expects the step on an old prefix and on a
clean one, and knows it in the prefix that has everything.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The maintainer asked for the lifecycle tests on the current winum release
before merging. Rerun on winum-11.22-1 after the prefix was updated from
wine-inventor-11.20-6 by migrations 0002 to 0012: Vault beside Inventor,
closing either, prefix shutdown after the last one, part, assembly, save
and reopen, restart. Noted: migration 0010 enables InteractiveTutorial,
which crashes Wine Mono at start on a prefix without .NET Framework 4.8.

Co-Authored-By: Claude <noreply@anthropic.com>
Rebased Lukas10999's Vault work (PR Harvi654#8) onto the Create Installer
installer (PR Harvi654#91): the client now comes from its own Create Installer
through scripts/install.sh, so the launcher's and the menu entry's
hints say so instead of install-from-image.py --app vbc. Main took
migrations 0012 and 0013 while Harvi654#8 was open; its DPI step was not merged
yet, so it is renumbered to 0014-vault-dpi-aware (file, SHA256SUMS,
README, tests, docs) rather than added under a taken number. The
README's status table shows the Vault client as Testing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Harvi654
Harvi654 merged commit 8b0e7b6 into Harvi654:main Dec 5, 2026
2 checks passed
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.

2 participants