Skip to content

Commit 6949016

Browse files
authored
Wayland inroads (#5)
* Add agents file for nix * Ignore codex settings * Force agents to route nix builds via nix * Test patch and document failure * No implicit inventor version and switch default to 2027 * Clarify Nix defaults and Wayland test attribution Address review feedback by correcting the renamed flake output example, preserving the historical validation command, and explaining why module defaults remain on 2026. Attribute the WebView2 follow-up results to the Nix maintainer. * Require explicit Inventor release selection in the NixOS module Default versions to an empty list so enabling the module does not implicitly install a release or register a callback. Document explicit selection in the quick start and check the empty configuration through the flake. * Update nix-overlayfs to the latest main revision Pin the reviewed overlay library changes for runtime user mapping, registry links, FUSE ownership and browser lifetime. The full Inventor 2027 build and flake checks pass; isolated X11 startup and Home render, while part loading and clean shutdown remain unvalidated. * Warn when Inventor is enabled without a selected release An empty versions default can otherwise silently remove Inventor for configurations that only enable the module. Explain how to select releases and check that the warning appears only when enabled with an empty list.
1 parent 3c4db95 commit 6949016

14 files changed

Lines changed: 1013 additions & 82 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ config.env
77
downloads/
88
__pycache__/
99
dist/
10+
.codex/

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ own Autodesk download. Maintainer: @Harvi654. NixOS flake (`flake.nix`,
77
Read the README first, then the commit history (`git log`): commit messages
88
explain why things are the way they are.
99

10+
For Nix/NixOS work, also read [nix/AGENTS.md](nix/AGENTS.md).
11+
1012
## Layout
1113
- `scripts/install.sh` - terminal installer (8 phases); `scripts/install-gui.sh`
1214
+ `scripts/gui/installer.py` - GTK 4 window around it (follows `@@phase` lines).

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ https://github.com/user-attachments/assets/880c5111-3ad3-4582-8795-02d9e7b6050f
9696
| 3D PDF (Anark) | ❌ | Publish crashes Anark's `corewrapper.exe` under wine-mono; off by default |
9797
| Open dialog: clicking quickly through folders | ✅ | crashed Inventor 2026 and 2027 (.NET "Fatal error" while previews load) - fixed in Wine build `wine-11.20-4` (ntdll, XSAVE). 2027: no previews yet, folder names missing in the path bar |
9898
| GPU ray tracing | ❌ | not yet: tested on an RX 6400 (RDNA 2) with Inventor 2027 - vkd3d-proton reports DXR 1.1, but Inventor still says the card is not supported and never loads its ray tracer; CPU ray tracing works |
99+
| Native Wayland | ❌ | Does not work yet |
99100

100101
Found something that does not work? See [Reporting problems](#reporting-problems).
101102

‎docs/arch-hyprland.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ With monitor scale > 1, XWayland apps are upscaled and look blurry. Two options:
240240
Inventor's own UI scaling under Wine DPI changes is untested - please report
241241
what works.
242242

243+
### Native Wayland summary: not ready for Inventor (2026-10-26)
244+
245+
Native Wayland does not work yet for Inventor, especially its embedded
246+
WebView2 screens. The draft bridge helped render Home, but was terribly slow
247+
and glitchy; fractional-scale text remained blurry. Use X11/XWayland while
248+
waiting for upstream support. See the [reproducer and investigation](wine-repro/winewayland-cross-process-gdi/README.md)
249+
for screenshots, diagnosis, patch limitations, validation and tracked issues,
250+
including [Wine #58921](https://bugs.winehq.org/show_bug.cgi?id=58921).
251+
243252
### Window rules
244253

245254
Ready-made rules: `config/hyprland-inventor.lua` (Hyprland 0.55+, Lua config)
@@ -936,6 +945,11 @@ with an NVIDIA RTX card would show whether this is AMD-specific.
936945

937946
## Result log
938947

948+
**2026-10-26 - Native Wayland remains unusable:** the draft bridge rendered
949+
WebView2 Home content, but was terribly slow and glitchy. Keep X11/XWayland.
950+
The [reproducer README](wine-repro/winewayland-cross-process-gdi/README.md)
951+
contains the investigation, experiment results and upstream issue links.
952+
939953
**2026-10-15 - Inventor 2026 build 30.40.43500 (.NET 10), Wine 11.19, Arch + Hyprland, RX 580 (RADV):**
940954
UI starts, Autodesk sign-in works, Part created, sketch + Extrude rendered in the
941955
3D viewport through DXVK - **without the OGSFactory.dll binary patch**, with only

‎docs/nixos.md‎

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ packaged fonts, and valid licensing and Identity Manager links. Fresh-state
1212
GUI validation passed browser sign-in and basic part creation, save, and reopen.
1313
Broader application compatibility has not been validated.
1414

15-
The default target is Inventor Professional 2026 English with the 2026.4 update
16-
and Content Center, on x86_64 Linux. Inventor 2027 English with update 2027.1
17-
is also available as a separate package. The runtime builds Wine 11.20 with every
15+
The default flake target is Inventor Professional 2027 English with the 2027.1
16+
update and Content Center, on x86_64 Linux. Inventor 2026 English with update
17+
2026.4 is also available as a separate package. The runtime builds Wine 11.20 with every
1818
top-level patch in `patches/`. Nixpkgs and the nix-overlayfs fork are pinned in
1919
`flake.lock`; no local checkout is required by the committed input definitions.
2020
The pinned nix-overlayfs revision includes Wine 11.20's Mono 11.3.0 dependency
@@ -56,12 +56,12 @@ private Nixpkgs instance; it does not change your system-wide Nixpkgs policy.
5656

5757
```sh
5858
nix flake check
59-
nix build .#inventor
60-
nix run .#inventor
59+
nix build .#inventor-2026
60+
nix run .#inventor-2026
6161
```
6262

6363
When developing with new files that have not yet been added to Git, use
64-
`path:$PWD` as the flake reference, for example `nix build "path:$PWD#inventor"`.
64+
`path:$PWD` as the flake reference, for example `nix build "path:$PWD#inventor-2026"`.
6565

6666
## Declarative integration
6767

@@ -105,6 +105,8 @@ Create `inventor.nix` beside your system flake:
105105
{ lib, ... }:
106106
{
107107
programs.autodesk-inventor.enable = true;
108+
# Select a version explicitly; the default [] installs nothing.
109+
programs.autodesk-inventor.versions = [ "2027" ];
108110
109111
# Optional narrow system policy; the default package also works without it.
110112
nixpkgs.config.allowUnfreePredicate = pkg:
@@ -127,6 +129,7 @@ For the minimal setup, `inventor.nix` can contain just:
127129
```nix
128130
{
129131
programs.autodesk-inventor.enable = true;
132+
programs.autodesk-inventor.versions = [ "2027" ];
130133
}
131134
```
132135

@@ -161,7 +164,9 @@ xdg.mimeApps.defaultApplications."x-scheme-handler/adskidmgr" = "autodesk-invent
161164

162165
## Install both releases side by side
163166

164-
The NixOS module keeps the existing 2026-only default. To install both releases:
167+
The flake defaults to 2027. The NixOS module defaults to `versions = [ ]`;
168+
select releases explicitly. Enabling it with an empty list installs nothing
169+
and does not register a browser callback. To install both releases:
165170

166171
```nix
167172
programs.autodesk-inventor = {
@@ -173,8 +178,7 @@ programs.autodesk-inventor = {
173178
Use `versions = [ "2027" ];` for 2027 only. Each release has its own desktop
174179
entry, Wine prefix, licensing database, lock, settings, and logs. The commands
175180
are `inventor` for 2026 and `inventor-2027` for 2027. From the checkout, use
176-
`nix run .#inventor-2026` or `nix run .#inventor-2027`; `.#inventor` remains 2026.
177-
Native Wayland remains experimental for both releases.
181+
`nix run .#inventor-2026` or `nix run .#inventor-2027`; `nix run` defaults to 2027.
178182

179183
The module's browser callback default selects the newest installed release.
180184
If Home Manager manages MIME defaults and you install 2027, use
@@ -227,7 +231,7 @@ Validated on 2026-10-20 with the library pinned to
227231
`8bf7c5cfa2541cf1478b87b519dcdc4c75831407`:
228232

229233
- `nix flake check`: passed, including seven installer boundary/regression tests.
230-
- `nix build .#inventor --no-link --keep-failed -L`: passed.
234+
- `nix build .#inventor --no-link --keep-failed -L` (now `.#inventor-2026`): passed.
231235
- Application layer: `/nix/store/38y9yn20sg5nxi06fr6pfgh78v0a8g7l-inventor-2026.4`.
232236
- Launcher: `/nix/store/kbrqwdmy6g8qmzd82s82x2fs137w6pgv-inventor-overlay-2026.4/bin/inventor`.
233237
- `Inventor.exe`: PE signature and x86-64 machine type verified; 1,587,032 bytes.
@@ -261,16 +265,3 @@ The hidden Xvfb desktop still stops at “Loading…” when creating a standard
261265
with either graphics setup. Its cause remains undetermined; the successful
262266
normal-desktop test establishes the supported smoke-test result. The isolated
263267
desktop was stopped, and the authenticated test state was preserved.
264-
265-
## Native Wayland limitation
266-
267-
Use the regular **Autodesk Inventor 2026** desktop entry on Wayland desktops;
268-
it runs through XWayland and is the validated configuration. Native fractional
269-
scaling is currently unavailable with this setup.
270-
271-
**Autodesk Inventor 2026 (Wayland)** remains an experimental entry and is not
272-
working yet. It explicitly selects Wine’s `wayland` driver. On 2026-10-20 the
273-
user confirmed that a window appears, but remains unresponsive after resolving
274-
a separate sign-in/licensing issue. Native Wayland is therefore not a usable
275-
alternative to the regular launcher at present. Close Inventor before changing
276-
launchers because they share persistent state and the running Wine session.

0 commit comments

Comments
 (0)