EndoMint

McoreD's blog · Opinions are my own.

ShareX Linux milestone across six distributions

ShareX's Linux port now runs daily across Wayland desktops, with community fixes from issue #8867 locked in on cross-platform behind a green CI build.

An earlier post explained how ShareX puts Windows, macOS and Linux behind one platform layer. Commit 5b9305b8e landed the #8867 fixes, 97629135e added regression tests, and CI run 46650939401 passed all 11 jobs across Windows, macOS and Linux, shipping .deb, .rpm, .AppImage, .tar.gz and macOS packages (x64 and arm64).

Linux distributions tested

Real bugs surfaced by testing across six distributions and compositors:

Distribution Desktop and session What was tested
Omarchy (Arch) Hyprland (Wayland) and rootful Xwayland (X11) Primary dev host: layer-shell overlays, grim, wf-recorder, hyprctl hotkeys, clipboard, watch folders, secrets, sounds, browser host and X11
Arch Linux (CachyOS kernel) KDE Plasma 6.8 (Wayland, four monitors) Multi-monitor overlays when no display covers (0, 0), plus Print Screen and Shift+Print Screen portal bindings
Hyprland 0.57.2 Hyprland (Wayland, two monitors, 3200x1080) Cross-monitor overlays, dragging over Waybar and Quickshell bars, and pointer coalescing for Escape
Fedora 44 and 45 GNOME 50.6 / 51.1 and KDE Plasma (Wayland) Portal screenshot permissions, Pictures cleanup, Nautilus scripts, lock-screen windows, RPM 6.1 signatures and KDE history and upload runs
Ubuntu 24.04.5 LTS GNOME (Wayland, 125% scaling) The .deb package and local cross-platform build: 2560x1600 fullscreen and region capture without SHAREX_DISABLE_WAYLAND=1
Bazzite 45 (immutable Fedora) KDE Plasma 6.8.3 (Wayland, 125% scaling) The .rpm package, 125% region clipping, Ctrl+Shift+1 and Ctrl+Shift+4 shortcuts, PipeWire MP4/GIF recording, narrow regions and audio sync

The milestone confirmation came on Ubuntu 24.04.5 LTS (GNOME Wayland, 125% scaling), where building 5b9305b8e restored full-display capture natively.

The fractional scaling crop

Both Ubuntu GNOME and Bazzite KDE lost the right 512 pixels and bottom 320 pixels of a 2560x1600 screen at 125% scaling.

Because neither compositor exposes monitor layouts to plain Wayland clients, DesktopScreen.AllScreens fell back to Avalonia's 2048x1280 logical bounds. Screenshot.CaptureFullscreenAsync treated those bounds as a Region request, and the portal cropped the 2560x1600 desktop image down to 2048x1280.

Fullscreen and single-monitor active captures now request ScreenCaptureMode.FullScreen directly. On Wayland, RegionCaptureWindow tracks Resized and ScalingChanged for layer-shell sizing, and EditorView no longer overwrites DpiScale during fullscreen region capture.

PipeWire frames, borders and system audio

Testing MP4 and GIF recording on Bazzite uncovered five bugs in the recording pipeline:

  • GStreamer raw I420 aligns Y and UV rows to 4 bytes (686,000 bytes per 652x700 frame rather than 684,600), so assuming packed rows caused diagonal distortion.
  • Under SHAREX_DISABLE_WAYLAND=1 (XWayland), selections were already in physical pixels while the portal stream reported logical 2048x1280 bounds, causing PipeWireRecordingSource.GetCrop to scale by 1.25 twice.
  • Sub-region crops keep odd X and Y origins and slice in BGRx before chroma subsampling (videocrop or in-process conversion) so red border outlines do not bleed into chroma.
  • RecordingRegionBorder scales its stroke to 1 physical pixel at 125% to 200%, and ScreenRecordWindow ignores stale native KWin positions 35 pixels right during pending narrow-selection moves.
  • The YUV4MPEG pipe flushes every frame with live wallclock timestamps (-use_wallclock_as_timestamps 1 -probesize 32 -analyzeduration 0), paired with PulseAudio / PipeWire-Pulse discovery (@DEFAULT_MONITOR@, @DEFAULT_SOURCE@, pactl list short sources), -f pulse -isync 0 and aresample=async=1:first_pts=0.

KDE shortcuts and Hyprland layers

On KDE Plasma, xdg-desktop-portal-kde turns preferred_trigger directly into Qt key sequences. CTRL+SHIFT+1 registered Ctrl+Shift+1, whereas Shift+1 on a US keyboard emits !. For KDE sessions, PortalGlobalShortcutsService now maps shifted digits and punctuation to XKB names like CTRL+exclam and CTRL+dollar.

Hyprland testing also moved region capture onto zwlr_layer_shell_v1 overlay surfaces over Waybar and Quickshell, with coalesced pointer motion so Escape stays responsive. New Linux installs store data under $XDG_CONFIG_HOME/ShareX while keeping existing Documents/ShareX configs.

What is still open

All 838 local Linux Release tests pass across five test projects, and CI is green on 97629135e. Three edges remain: CI RPM packages are unsigned under Fedora 45's RPM 6.1 checks (dnf install works while rpm -i warns), GNOME Wayland still has minor pop-up positioning quirks, and the new KDE recording, audio sync and shifted-shortcut fixes still await a live re-test using the Bazzite .rpm from getsharex.com/artifacts.