Skip to content

Add a native Linux viewer for X11 and Wayland desktops, with its downloads, updates and link handling - #291

Merged
gccody merged 1 commit into
mainfrom
feat/linux-viewer
Nov 12, 2026
Merged

gccody merged 1 commit into
mainfrom
feat/linux-viewer

Conversation

@gccody

@gccody gccody commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What

The viewer (meshrmm-remote) now runs on Linux, x64 and arm64, beside Windows and macOS. A technician on a Linux desktop downloads it from the website's Remote app menu, and Connect opens it through a meshrmm link as on the other platforms.

  • Platform layer in remote/src/platform/linux/: winit for the windows, wgpu (Vulkan, or OpenGL ES where there is no Vulkan driver) for the video, the bundled OpenH264 for software H.264 4:2:0 decoding on a thread of its own, and egui for the toolbar, menus, chat, prompts and dialogs. The toolbar is drawn from the same remote/src/toolbar.rs model as the other viewers, and the gear menu has the macOS viewer's session options.
  • Session features: mouse, wheel and keyboard by key position, display and quality menus, restart, files (send, receive, paste, drop on X11), toolbox, chat, annotation, recording, clipboard sync, audio through PulseAudio or PipeWire, diagnostics overlay, reconnecting in the same window, pause while minimised (X11), disconnect confirmation.
  • Install: a downloaded viewer copies itself to ~/.local/share/meshrmm-remote, adds a launcher that makes it the desktop's handler for meshrmm links, and --uninstall removes it. A viewer the user does not own (a system package) stays where it is.
  • One viewer per device: a new link asks the open viewer to end and takes over. SIGTERM, SIGINT and SIGHUP end the session as closing the window does, so the device is free at once.
  • Updates: the viewer replaces its own file from the server's signed manifest and relaunches with the session it holds; a failed replacement rolls back.
  • Release and website: scripts/build-remote-linux.sh builds both architectures against glibc 2.28 with every desktop library loaded at run time; the release workflow builds and signs them, artifacts.json lists client-linux-x64 and client-linux-arm64, and the website offers and detects the Linux downloads.
  • Shared code: the wheel normalizer moved out of the macOS viewer; Linux audio playback goes through libpulse; the Linux viewer keeps its settings, identity and log under the XDG folders.

Tested

  • Linux: cargo clippy -D warnings and tests for the Agent, viewer and shared crates (the CI job's commands); release builds for x64 and arm64 through cargo-zigbuild (the x64 one needs only glibc 2.28: libc, libm, libdl, libpthread).
  • Windows: workspace clippy and tests. macOS: clippy for the Agent and viewer through zig.
  • Dashboard npm run verify, node --test scripts/*.test.mjs.
  • End to end against a dev server, viewing a Debian Xfce computer from Ubuntu 24.04 GNOME on X11 and Ubuntu 26.04 GNOME on Wayland, both with Mesa's software Vulkan: video at 1080p30 (about 2 ms a frame to decode, 30 FPS presented), mouse and keyboard, every toolbar menu, chat, diagnostics, audio, sending a file, clipboard, minimise and restore, maximise, moving and resizing the borderless window, a short and a long network cut (ICE recovery and a full reconnect), a second link replacing the open viewer, install from a download, --uninstall, and opening links through xdg-open.

Limits

  • Software H.264 4:2:0 only: no H.265, 4:4:4 or hardware decoding yet.
  • Shortcuts the viewer's own desktop keeps (Alt+Tab, Super) are not sent to the device.
  • On Wayland the desktop does not say when a window is minimised, so video is not paused there, and dropped files arrive on X11 only.
  • Text is drawn with egui's built-in Latin fonts.

…loads, updates and link handling

The viewer now runs on Linux (x64 and arm64) beside Windows and macOS. Its
platform layer is in remote/src/platform/linux/: winit for the windows,
wgpu (Vulkan or OpenGL ES) for the video, the bundled OpenH264 for software
H.264 4:2:0 decoding, and egui for the toolbar, menus, chat, prompts and
dialogs, drawn from the same toolbar model as the other viewers. Audio plays
through PulseAudio or PipeWire's PulseAudio server.

- A downloaded viewer installs itself in ~/.local/share/meshrmm-remote,
  registers a launcher for meshrmm links, and `--uninstall` removes it.
- One viewer per device: a new link asks the open viewer to end and takes
  over; SIGTERM, SIGINT and SIGHUP end the session as closing the window does.
- The viewer updates itself in place from the server's signed manifest.
- The release builds it against glibc 2.28 (scripts/build-remote-linux.sh),
  with every desktop library loaded at run time; the website offers the
  Linux downloads and CI checks the viewer on Linux.
- The wheel normalizer moved out of the macOS viewer to share it, and the
  Linux viewer keeps its settings, identity and log under the XDG folders.
@gccody
gccody enabled auto-merge (squash) November 12, 2026 04:45
@gccody
gccody merged commit ecf705e into main Nov 12, 2026
15 of 18 checks passed
@gccody
gccody deleted the feat/linux-viewer branch November 12, 2026 05:14
gccody added a commit that referenced this pull request Nov 20, 2026
…e Linux viewer among the supported platforms (#292)

The database's layout isn't frozen until 1.0.0: a release can change 0001_initial.sql in place, and the server then refuses to start on the older release's database. The upgrade instructions promised a migration every time, so they now say what happens before 1.0.0 and what to do.

The README's platform table left out the Linux viewer that #291 added.
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