Skip to content

feat(opencadstudio): add Open CAD Studio 2D/3D DWG/DXF CAD (io.github.HakanSeven12.OpenCadStudio) - #432

Merged
jing2uo merged 1 commit into
mainfrom
add/io.github.HakanSeven12.OpenCadStudio
Sep 25, 2026
Merged

jing2uo merged 1 commit into
mainfrom
add/io.github.HakanSeven12.OpenCadStudio

Conversation

@jing2uo

@jing2uo jing2uo commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

What — Open CAD Studio (formerly H7CAD), a Rust CAD application for 2D drafting, documentation and 3D solid modeling that reads and writes DWG and DXF natively, as io.github.HakanSeven12.OpenCadStudio.

Why this fills a gap

Not on Flathub: /api/v2/appstream/io.github.HakanSeven12.OpenCadStudio returns 404 and a search by name finds nothing. Its author submitted it (flathub/flathub#8174, as H7CAD); it was closed under the generative-AI policy. The project has shipped 91 releases since March and has a large, active tracker of real CAD users (1,400+ issues and PRs). It is also the catalog's first CAD application. The app id is the one in upstream's own metainfo.

Packaging

  • Runtime: org.freedesktop.Platform//26.08. One self-contained binary (winit + wgpu); it links only libc/libstdc++ and dlopens Vulkan, EGL, Wayland, X11/xcb, xkbcommon and dbus, all in the runtime.
  • Extra-data: the official OpenCADStudio-<tag>-linux-x86_64.AppImage plus the appimage-tools-v2 prebuilt (outside the managed block). apply_extra cracks the SquashFS offline and resolves the binary through AppRun (a symlink) instead of hardcoding its name.
  • Fonts: text is drawn with cosmic-text/fontdb, which reads the <dir> elements of a single fontconfig file and does not reach the host's fonts from inside the sandbox, so the translated UI rendered as tofu boxes. A bundled fonts.conf lists every font directory (runtime, /run/host/*fonts, user fonts) and the wrapper points FONTCONFIG_FILE at it, as for Navop. OPENCADSTUDIO_FONTCONFIG_FILE is the escape hatch.
  • Updates: resolve-update.sh matches OpenCADStudio-<tag>-linux-x86_64.AppImage exactly (the release also has a snap and Windows builds).

Sandbox

  • --share=ipc, --socket=wayland, --device=dri (wgpu)
  • --socket=x11, not fallback: the clipboard goes through arboard, and Flatpak's Wayland socket doesn't pass data-control, so X11 is its only route. The window itself is native Wayland.
  • --share=network: update check and links to the project's discussions
  • No filesystem grant: drawings open and save through the file chooser portal; settings stay in the redirected XDG dirs. External references and underlays point at other files by path, which the portal alone does not make reachable, so the metainfo documents flatpak override --user --filesystem=home.

Verification

  • read-descriptor.mjs / audit-descriptor.mjs exit 0; tests/run-tests.sh all pass
  • build-app.sh builds; appstreamcli compose prints Success
  • check-apply-extra.sh: OK as root with no capabilities
  • resolve-update.sh → 2026.38, 2026-09-20, official URL
  • LD_TRACE_LOADED_OBJECTS on the binary: 0 not found
  • Launches as a native Wayland window (xwayland=false), window class io.github.HakanSeven12.OpenCadStudio matches StartupWMClass. wgpu picked GL on this Intel Lunar Lake laptop and fell back to Vulkan for the headless path, as the app's own compatibility probe reports.
  • Opened a test DXF (line, circle, text) from the command line; it renders in the viewport and the properties panel reads AC1032.
  • Fonts: without the bundled fonts.conf, the Chinese UI rendered as tofu boxes; with it, every label renders.
  • Headless --export: DXF → DWG (AC1032 / 2018) → DXF round trip succeeds inside the sandbox, entities intact.
  • Interactive save and open through the file chooser portal were not exercised (no input injection on this Wayland session)
  • 3D modeling, plotting to PDF, SpaceMouse and plugins not exercised

🤖 Generated with Claude Code

….HakanSeven12.OpenCadStudio)

Open CAD Studio (formerly H7CAD) is a Rust CAD application that reads and
writes DWG and DXF natively, with 2D drafting, documentation tools and
kernel-backed 3D modeling. Its author submitted it to Flathub
(flathub#8174); it was closed under the generative-AI policy. The app id
is the one from upstream's own metainfo.

The official AppImage is cracked offline with the appimage-tools prebuilt;
the AppDir is one self-contained binary.

Text goes through cosmic-text/fontdb, which reads the <dir> elements of a
single fontconfig file and does not reach the host's fonts in the sandbox:
the translated UI rendered as tofu boxes. A bundled fonts.conf lists every
font directory and the wrapper points FONTCONFIG_FILE at it (Navop pattern).

--socket=x11 alongside wayland because the clipboard goes through arboard.
No filesystem grant; external references need the documented override.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jing2uo
jing2uo merged commit f8e6377 into main Sep 25, 2026
@jing2uo
jing2uo deleted the add/io.github.HakanSeven12.OpenCadStudio branch September 25, 2026 03:31
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