The PR template gets an "AI cross-review" section: contributors list the
models that reviewed the diff besides the one that wrote it, paste the
review output or a share link, and give their decision on each finding.
Findings can be wrong, so they are judged, not applied blindly.
A pull_request_target workflow reads the PR description and file list
(it never checks out PR code) and, for authors without write access,
labels the PR needs-evidence and leaves one polite comment listing what
is missing: test environment and results, reproduction for bug fixes,
AI cross-review, screenshots or video for UI changes, and the approval
link for features. Translation, docs and CI-only PRs skip the test and
review checks. PRs opened before this template are left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs
* feat(drm): add allow-drm-capture and stop probing _drm when it is off
DRM capture is about to be compiled into every Linux build, so it needs a
runtime switch. `drm_capture_enabled()` reads the new `allow-drm-capture`
option (default off) or `RUSTDESK_DRM_CAPTURE=Y`, which the root service will
set for a greeter `--server`. While it is off the consumer never probes `_drm`:
`availability()` and `availability_cached()` answer Unavailable and the
startup warm returns at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* feat(drm): keep the stock greeter, uinput and cursor paths while allow-drm-capture is off
With drm compiled in, these paths changed even when DRM capture was never
used: a Wayland greeter read as Wayland, the uinput range was set on the
apply thread, `wayland_has_compositor` said no at a greeter, every Wayland
login ran loginctl for the settle, and the cursor cache had a ceiling.
Each now checks `drm_capture_enabled()` and, while it is off, runs the code
a build without drm runs. `check_init`'s stock `match` is only re-indented
under its new `if`; see `git diff -w`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* feat(drm): start the _drm producer and greeter paths only with allow-drm-capture, restart --server on change
The root service used to start the `_drm` producer at boot, which dlopens
libdrmtap, opens the DRM device and grabs a frame, and to treat a Wayland
greeter as a DRM login screen. Both now wait for allow-drm-capture:
- the producer starts the first time the option is seen on, and
`handle_drm_conn` refuses peers while it is off;
- when the option changes, the service restarts `--server` and re-reads the
seat, because every `--server` decides its paths when it starts;
- a greeter `--server` runs as the greeter uid only with the option on, and
is passed RUSTDESK_DRM_CAPTURE=Y, since its own config has not synced from
root when `IS_X11` is computed;
- `get_active_userid_fresh`, the greetd detection and the login-Wayland HOME
lookup follow the option, so with it off they match a build without drm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* feat(flutter): add the DRM capture switch to the Wayland settings card and home warnings
Settings > General > Wayland gets a "Use DRM screen capture" checkbox on an
installed Linux client, with the explanation shown below it: it skips the
Wayland screen sharing prompt (the login screen too), may not work on every
device, and switching it disconnects current sessions. Flatpak and AppImage
are not installed builds, so they do not show it.
On the home page, an installed client with the option off now offers an
"Enable" button on the Wayland session and Wayland login screen warnings,
and shows neither warning once it is on. Builds that are not installed, and
clients where the option is fixed, keep the existing warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* feat(lang): add the DRM screen capture strings
"Use DRM screen capture", its settings explanation and the two home-page
warnings that offer it. it.rs is left for its translator, and sc.rs is
left empty rather than guessed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* build(linux): bundle libdrmtap into the stock packages and drop the unattended-wayland variant
DRM capture is now a runtime option, so the package name no longer has to be
the consent. build.py compiles `drm,drm-wake` into every Linux Flutter build
on the deb and pacman paths (`--no-drm` opts out), and the stock `rustdesk`
deb carries libdrmtap. The yum and zypper paths only build Sciter rpms and
are left alone.
- The variant rename, its Conflicts/Provides on `rustdesk`, the extra
Depends and the measured libc6 floor are gone: libdrmtap is dlopen-ed and
falls back to PipeWire when it cannot load, so it must not stop the
package installing on older systems.
- The stock deb Conflicts/Replaces `rustdesk-unattended-wayland`, so
installing it takes over from that package.
- `--package` decides from the staged binary whether it is a drm build,
since it compiles nothing; a Sciter bundle stays as it was.
- The Flutter rpm specs and PKGBUILD install libdrmtap into
/usr/lib/rustdesk, and the rpms exclude it from auto-generated
Requires/Provides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* ci(linux): build every Linux package with drm and run the drm tests in the main job
build-rustdesk-linux now builds libdrmtap on the runner (x86_64 and
aarch64), compiles `drm,drm-wake` into the release library and packages the
library into the deb and both rpms; arch gets it through PKGBUILD. The
separate build-rustdesk-linux-drm job is gone, along with the
rustdesk-unattended-wayland deb it published.
- The drm-gated unit tests (`run_drm_tests`) move into the x86_64 build
container unchanged.
- A step checks that the deb carries libdrmtap and a binary that dlopens
it, and each rpm is checked for the library and, on x86_64, for a glibc
requirement newer than the build container's.
- x86_64 uploads its deb on a PR too, as the drm job did, so a PR's build
can be installed and tested.
AGENTS.md now points the drm test rule at the x86_64 build job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* refactor(drm): keep start_os_service's diff to the producer move, check the cursor ceiling cheaply first
DrmCaptureSwitch now sits after start_os_service, so the diff there reads as
the producer spawn leaving and the poll arriving. The cursor-cache ceiling
compares the cache length before it locks DRM_STATE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): load the custom client before is_x11() can read Config, offer DRM only where it is compiled in
`IS_X11` now asks `drm_capture_enabled()`, which reads Config, and it is
computed in `global_init()`. `core_main()` ran that before
`load_custom_client()`, so on a Linux custom client the config loaded from
the stock "RustDesk" path before the app name was set and was never
reloaded; the root then synced that copy over the client's own settings.
Load the custom client first. On Windows and macOS `global_init()` does
nothing, so only the Linux startup order changes.
The DRM checkbox and the home-page "Enable" cards also showed on installed
builds without the drm feature (NixOS, source builds, --no-drm), where the
option has no effect. They now also need `is-drm-capture-supported`, a new
`main_get_common` key that reports whether drm is compiled in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(flutter): keep the DRM switch behind disable-settings, ask loginctl once per build
disable-settings hides the Security tab but not General, so the Wayland card's
checkbox and the home Enable button both stayed reachable on a locked custom
client. With settings disabled the home page falls back to the stock Wayland
warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): offer DRM only where libdrmtap loads, keep the stock check_init apply verbatim
- is-drm-capture-supported also requires the bundled libdrmtap to load, so a
host whose glibc is older than its build is not offered a switch that does
nothing.
- Dispatch the Wayland probe before load_custom_client: the probe child must
run before any other startup work.
- check_init keeps master's not(drm) apply untouched; the drm build carries its
own copy for allow-drm-capture off.
- drm_capture_enabled's doc names the Wayland enumeration in base and scrap,
which does not read the option.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* ci(linux): catch any glibc 2.28+ requirement in the rpm drm check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): initialize libsodium before the custom client's signature check
core_main now loads the custom client ahead of global_init, which since
#16974 starts with init_sodium so nothing uses libsodium before it. Run it
first there too; a second sodium_init() is a no-op.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): follow allow-drm-capture in the startup warm and in running streams
- warm_availability reads the option inside its retry loop. It starts
before the initial config sync from root, so a --server whose account
config does not hold the option yet (a greeter account that gets no
RUSTDESK_DRM_CAPTURE, or an account not yet synced) skipped the warm
for its whole life and paid the cold probe on its first connection.
- handle_drm_conn checks the option per frame, next to the peer re-auth,
so turning it off ends a stream that is already running rather than
only refusing new ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* test(drm): skip the option-off test where the option is on
drm_capture_enabled() reads the real config and RUSTDESK_DRM_CAPTURE, so
the test failed on a machine that has DRM capture turned on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): leave running streams to the --server restart
Drop the per-frame allow-drm-capture check added in 3d1469255. The root
sees the option flip before its service loop restarts the --server, so
the check ended the stream up to one loop pass early and the consumer
spent that time failing to rebuild a capturer before the restart
disconnected the session anyway. It also took CONFIG2's read lock on
every frame, which Config2::set_options holds for writing across its
disk write. The comment now says what turning the option off does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* ci: run the drm and unix-file-copy-paste tests in the CI workflow
Move them out of the Linux package build into ci.yml's x86_64 Linux job,
which already has vcpkg and the build dependencies. The drm feature only
dlopens libdrmtap, so the tests need neither the bionic container nor
the library. A failing test no longer stops the deb, rpm and Arch
packages or skips appimage and flatpak.
The step runs every test of each package with the feature on instead of
selecting modules by name, so run_drm_tests and its guard against a
filter that matches nothing are gone, and so is the AGENTS.md rule
about it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): hand an allow-drm-capture change made as root to the service
The service decides on DRM from its own copy of the config, which only a
non-root --server syncs. A root process that changed the option -- the CLI
(`sudo rustdesk --option`), or a root --server at a login screen applying a
strategy -- left the service on the old value, so the change never took effect
there, and the next store by the service overwrote it in the file.
Such a process now sends its config to the service over the existing SyncConfig
when the option changed. Non-root processes and changes to other options do
nothing more.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* build(drm): recommend the GL libraries the old variant depended on
rustdesk-unattended-wayland depended on libdrm2, libegl1 and libgles2. The
package that replaces it now recommends them: libdrmtap opens EGL lazily, so they
stay optional, but apt still installs them by default and autoremove keeps them.
AGENTS.md keeps the rule that a test behind a feature no CI build enables needs a
cargo test line, now pointing at ci.yml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* build(drm): recommend the GL libraries in the rpm and Arch packages too
The rpm specs recommend libdrm, libEGL and libGLESv2 by soname, since Fedora and
openSUSE name the packages that provide them differently; dnf and zypper install
weak dependencies by default. PKGBUILD lists libdrm and libglvnd as optdepends,
which pacman only reports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): hand the option to the service only from a current copy of the config
SyncConfig carries the whole config, and the service stores it and takes its
trusted-device grants as authoritative. A root UI held the copy it loaded at
startup, so turning the option on or off there could restore a revoked trusted
device or an older permanent password. Its view of the option could also differ
from the service's, so a change could be skipped.
The push now runs in the root --server's handler of an options update, the
process that holds the config, also when the update is rejected after the
options were applied. `sudo rustdesk --option` still pushes by itself, since it
has just loaded the config and can run before any --server is up. A UI never
pushes, including a GUI started with sudo that hosts the IPC itself: a change
made there does not reach the service.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* ci: check the archlinux package carries libdrmtap
PKGBUILD skips libdrmtap when it finds none, so a tag or nightly build could
publish an Arch package without it while every step passed. Check its contents
as the deb and rpm steps do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(drm): send the service the trusted-device grants on disk
SyncConfig(Some(..)) makes the service write the sender's grants as
authoritative. `sudo rustdesk --option allow-drm-capture ...` loads its
config at start and pushes only after its IPC round trips with the
--server, so a grant written in that window (a 2FA trust just granted, a
device just removed) was reverted by the push.
Read the grants from disk, as the service's own SyncConfig(None) reply
does; the service then finds them equal to what it holds and writes
nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(lang): say unattended access in the Lithuanian wayland-drm-tip
"Automatinis prisijungimas" is this file's "Auto Login", so the tip read
as advice about automatic login. "Neprižiūrima prieiga" matches the
English source and the file's "prieiga" for access.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
* fix(core_main): load the custom client early only with drm
Only a Linux drm build reads Config in global_init (the IS_X11 greeter
override reads allow-drm-capture), so only there must the custom client
load first. Every other build keeps master's order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Update connection.rs
Added camera support for macOS
* scrap: enable nokhwa camera deps and cfg for macOS (frame path still TODO)
* scrap: allow PixelBuffer from raw bytes on macOS for camera frames
* macOS: request camera permission via nokhwa, add NSCameraUsageDescription
* macOS: add camera entitlement
* nokhwa: fix macOS bi-planar (NV12) camera frames via vendored patch
* nokhwa: point at filipklein5/nokhwa fix branch instead of vendoring
Replaces the vendored libs/nokhwa copy (~16.5k lines) with a git
dependency override pointing at the macOS NV12 fix on
filipklein5/nokhwa#macos-nv12-fix, submitted upstream as
rustdesk-org/nokhwa PR (see Cargo.toml comment). Keeps this PR's diff
focused on the macOS camera support itself.
* nokhwa: link to upstream PR #7
* address CodeRabbit review on #17135
- connection.rs: move the macOS camera-permission wait (can block up to
30s) off the Tokio worker via spawn_blocking, so send_logon_response_
and_keep_alive stays responsive to input/heartbeats while it's pending.
- camera.rs: build the non-Linux camera list in a local Vec and swap it
into SYNC_CAMERA_DISPLAYS only after enumeration succeeds, instead of
pushing into the shared cache mid-loop. A create_camera failure
partway through no longer leaves the cache holding a stale prefix
that disagrees with the Err this function returns (pre-existing on
Windows; macOS now exercises the same path).
- Cargo.toml + res/osx_camera_info.plist: add NSCameraUsageDescription
to the legacy Sciter macOS bundle via cargo-bundle's
osx_info_plist_exts, so that build path (unlike the Flutter one)
doesn't get killed at the camera permission prompt for lacking it.
* nokhwa: bump to 8920ff8 (420v + review fixes, rustdesk-org/nokhwa#7)
* keep non-macOS camera paths unchanged
- camera.rs: drop the SYNC_CAMERA_DISPLAYS local-vector rework of the
non-Linux loop; it also changed Windows and fixes a pre-existing
issue, so it belongs in a separate PR.
- connection.rs: use spawn_blocking for Cameras::all_info() on macOS
only (the permission wait is macOS-specific); other platforms keep the
original call.
* macOS: only advertise/use View Camera when AVCaptureDeviceDiscoverySession exists
nokhwa's AVFoundation query uses AVCaptureDeviceDiscoverySession, which
exists only on macOS 10.15+; on 10.14 hosts class! panics and the
release profile aborts the server. Probe the class at runtime:
- connection.rs: advertise support_view_camera on macOS only if present
(the windows/linux line is back to its original form).
- camera.rs: all_info()/exists()/create_camera() return no cameras (or
an error) when it is missing.
Also bumps nokhwa to 0a8bf56 (recv_timeout in the macOS frame_raw).
* nokhwa: bump to 5439c78 (releases the configuration lock, rustdesk-org/nokhwa#7)
* nokhwa: bump to d390711 (hold the configuration lock only while starting the stream, rustdesk-org/nokhwa#7)
* nokhwa: bump to a509e0e (configure() closure unlocks on every path, rustdesk-org/nokhwa#7)
* nokhwa: bump to 5bd00f5 (configure() takes &Self, can't swap the unlocked device, rustdesk-org/nokhwa#7)
* nokhwa: drop the [patch] now that rustdesk-org/nokhwa#7 is merged
rustdesk-org/nokhwa#7 merged into fix_from_raw_parts at 137a327.
Cargo.toml's existing git dependency now resolves there directly, so
the temporary [patch] to filipklein5/nokhwa is no longer needed.
* quartz.rs: drop PixelBuffer::from_frame, inline the screen constructor
The screen-capture call site now constructs PixelSource::Screen
directly, as it did before this feature (just with the new field
names). The extra from_frame helper only existed to wrap that one
call, which AGENTS.md asks to avoid: the screen path shouldn't change
shape just because camera.rs needs PixelBuffer::new.
* address maintainer review round 3
- camera.rs: gate exists() and create_camera() on macOS on
nokhwa::nokhwa_check() too, not just is_camera_supported(). Without
it, a denied/timed-out permission let exists() report a camera
anyway, so the server started the camera0 video service and spammed
unthrottled errors while touching AVFoundation without permission.
all_info() always runs ensure_macos_camera_permission() first during
login, so by the time these run the permission state is settled.
- connection.rs: log the Err from Cameras::all_info() (permission
denied / timed out) before falling back to an empty Vec, instead of
dropping it silently via unwrap_or_default().
- camera.rs: remove the FIXME above the PixelBuffer::new call; it's
stale now that macOS implements it.
- quartz.rs: PixelBuffer::new computes stride from pixfmt.bytes_per_pixel()
instead of hardcoding width * 4, so non-32bpp formats get a correct
stride too.
* nokhwa: bump to f149b07 (rustdesk-org/nokhwa#8 merged, fixes macOS 10.14 launch crash)
* fix(linux): capture Wayland portals that offer only DMA-BUF (niri)
niri's screencast stream offers BGRx only as DMA-BUF (linear and tiled
modifiers), with no system-memory format. The appsink accepts only
system-memory BGRx/RGBx, so the PipeWire link fails with "no more input
formats" and the capturer fails with "Element failed to change its
state".
When the system-memory pipeline cannot start, retry with a pipeline
that accepts linear DMA-BUF (XR24/XB24). Linear buffers are CPU
readable, so the frame is read by mmap of the dmabuf fd using the
VideoMeta stride and offset, inside DMA_BUF_IOCTL_SYNC. A normal map
cannot be used: for DMA-BUF the PipeWire chunk size is a placeholder
(1 byte on niri), and always-copy copies only that chunk, so it is not
set on this pipeline.
Desktops where the current pipeline works do not change.
Refs #15911
* scrap/wayland: address review of the DMA-BUF fallback
- Leave the existing system-memory setup in PipeWireRecorder::new as it
was. Only a fallback hook replaces its set_state(Playing)?, and the
DMA-BUF pipeline is built by a separate build_dmabuf_pipeline().
- Check every result in read_linear_dmabuf: DMA_BUF_IOCTL_SYNC start and
end (restarted on EINTR/EAGAIN, as the kernel requires), lseek, mmap.
Log munmap and pipeline-stop failures.
- Map the whole dmabuf (size from lseek) and bounds-check the frame
against it in pack_rows, so a bad or negative stride is an error.
- Unit tests for row packing, the bounds check, and the XR24/XB24
format mapping.
* scrap/wayland: throttle the per-frame DMA-BUF unmap warning
read_linear_dmabuf runs once per frame, so a persistent munmap failure would log a line per frame. Use hbb_common::throttled_log! (one line per minute with a repeat count).
* scrap/wayland: use checked arithmetic for the DMA-BUF frame end
The stride and offset come from the compositor. On 32-bit targets, start + stride * (h - 1) + row_len can wrap to a small value that passes the bounds check, and the row copy then panics. Compute the end with checked_mul/checked_add and return an error on overflow. The existing test gets one case for it.
* scrap/wayland: keep the system-memory capture path unchanged
capture() is back to master's body. A DMA-BUF sample now branches off at
the top into capture_dmabuf(), which has its own drm-format mapping, read,
duplicate check and crop, so GNOME and KDE run the same code as before.
A DMA-BUF frame that does not fit its buffer is now dropped with a trace
log, like the system-memory size mismatch (pipewire#985), instead of
ending the capture. mmap and sync failures are still errors.
* scrap/wayland: drop a DMA-BUF frame whose crop does not fit
The crop rectangle comes from the compositor's VideoCropMeta. One left
from an old allocation could slice past the packed frame and panic, so
capture_dmabuf now drops such a frame with a trace log before reading it.
* scrap/wayland: keep only the tests that pin the reported behavior
Drop the crop_fits test and the usize overflow assertion, which covered corner cases raised in review. The crop_fits check itself stays.
* fix(macOS): network retry 3s if os error is EHOSTUNREACH
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(macos): detect nested network errors when retrying
Signed-off-by: fufesou <linlong1266@gmail.com>
* refactor(macos): isolate network error detection
Move EHOSTUNREACH detection into the macOS platform module and share the fast retry timeout across both retry branches.
Signed-off-by: fufesou <linlong1266@gmail.com>
* test(macos): cover host-unreachable error chains
Cover direct, context-wrapped, and nested EHOSTUNREACH errors while ensuring ECONNREFUSED does not trigger the fast-retry predicate.
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(cm): block remote typing into protected chat
Publish CM focus protection over the existing IPC connection and check queued remote keys before injection. Preserve local chat editing and remote key releases, and stop input before closing desktop sessions when an established CM transport disconnects.
Add input-gate and local chat editing regression tests. Initial CM state synchronization and already-dispatched platform input remain known timing limits.
Signed-off-by: fufesou <linlong1266@gmail.com>
* refactor(cm): use a common synchronous setter
Route CM input protection through main_set_common_sync using the cm-input-blocked command. Preserve synchronous state publication and return errors for unsupported commands or invalid values. Remove the redundant Flutter CM chat compatibility test.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(cm): protect keyboard input whenever CM is focused
Use keyboard-specific names throughout CM protection and its common setter command. Keep mouse permission checks and key-release handling unchanged, and name transport-loss notifications after CM IPC.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(cm): validate mouse modifiers and preserve pending tunnels
Signed-off-by: fufesou <linlong1266@gmail.com>
* simplify
Signed-off-by: fufesou <linlong1266@gmail.com>
* Limit CM keyboard filtering to activation keys
Allow remote editing and non-activation shortcuts while CM is focused, while
rejecting keyboard activation of chat controls across protocol encodings.
Preserve local keyboard input and key releases.
Handle raw keys, text injection, Windows packed payloads, and Linux Select.
Reuse the native hotkey predicate so intact Legacy Unicode remains usable.
Signed-off-by: fufesou <linlong1266@gmail.com>
* Simplify CM keyboard filtering and disconnect teardown
Consolidate activation checks and regression tests. Use normal session teardown after CM IPC loss so the configured lock-after-session-end policy still applies.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(cm): simplify remote chat send protection
Reuse checkClickTime for keyboard and send-button actions before sending
or clearing drafts. Allow remote interaction when configured.
Record keyboard activity before native dispatch and retain the mouse
modifier whitelist. Remove the focus gate and its IPC plumbing.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(cm): cancel pending chat sends after disconnect
Signed-off-by: fufesou <linlong1266@gmail.com>
* remove the low-value test file
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
http://developercertificate.org currently returns HTTP 500, while
https://developercertificate.org returns 200. CONTRIBUTING-DE.md
already used https.
The Dutch README still pointed "set up your own server" at the old
blog path rustdesk.com/blog/id-relay-set, which redirects to
rustdesk.com/server, the URL used in the other READMEs.
Flutter 3.44 makes desktop text fields select all their text whenever
they regain focus; 3.24 did that only on web. On desktop the 2FA code
dialog opens on top of the still-open login dialog, and the two
CustomAlertDialogs bounce focus on every rebuild, so each typed digit
replaced the previous one on the macOS arm64 build (#17143). Windows
arm64 is built the same way.
The 3.44 source patch now passes selectAllOnFocus: false to
DialogTextField's TextField on desktop, restoring 3.24's behavior. Web
keeps the default (select all), as before. 3.24 has no such
parameter, so the change lives in the patch script like the other
3.44-only deltas.
Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(windows): show an installation tip for a missing service
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): preserve service state during recovery
Restore the saved stop-service option after installation errors and initialize the Windows Flutter service state before its first render.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(sciter): prioritize Windows recovery over download prompts
Show one Windows card in this order: upgrade the installed copy, install its missing service, then download a new version.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(flutter): read service recovery state synchronously
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(flutter): prioritize service recovery over update prompts
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(flutter): prioritize local installation over online updates
Offer the running version before an online update when the installed copy is older, even if its Windows service is registered.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(flutter): keep service recovery visible with hidden help cards
Allow missing-service recovery when the installed-copy upgrade card is hidden, while preserving visible upgrade priority.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): simplify service recovery priority
Show the missing-service Install action before update or upgrade cards in Flutter and Sciter. Preserve the original card order when service recovery is not needed.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): suppress recovery prompts during service installation
Suppress the missing-service prompt while an installation is active. Close Flutter sub-windows before service recovery, remove the redundant Windows error check, and qualify the service error type.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): keep service recovery tied to registration
Remove the installation-in-progress shortcut from the service probe. Flutter does not rebuild when the flag clears, which could leave the recovery action hidden after a cancelled or failed attempt. Keep the native guard against overlapping installations.
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(clipboard): reject unsolicited Windows format data responses
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(clipboard): inline format response validation
Keep the existing callback name and allocation path. Remove the wrapper while retaining request matching and lock coverage through response notification.
Validation: all 3 clipboard unit tests pass. Sequential native checks cover early responses, wrong connections, duplicates, and error-path lock release. All 64 unsolicited 1 MiB responses are rejected with no measured private-memory growth.
The desktop paste checks recorded in the PR were performed before this behavior-preserving simplification.
Signed-off-by: fufesou <linlong1266@gmail.com>
* test(clipboard): remove standalone response regression test
Keep the PR focused on the Windows C fix. The native before and after memory measurements cover the reported leak without a test that starts a second process.
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
* feat(windows): make installer firewall rules optional
Support FIREWALLRULES=0/1 in MSI and EXE installers, preserve the saved choice across maintenance and upgrades, and retain unconditional uninstall cleanup.
Persist MSI maintenance overrides with rollback and test EXE option resolution and command generation.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): keep firewall setup failures non-fatal
Restore infallible EXE script generation, warn and use the enabled default when option resolution fails, and continue after persistence errors. Use the existing non-blocking return policy for MSI firewall persistence and rollback actions.
Add regression coverage for invalid input and a failed registry command without changing valid FIREWALLRULES=0/1 behavior.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): support Y/N firewall installer options
Accept Y/y and N/n alongside 1 and 0 for FIREWALLRULES in MSI and EXE installers. Normalize MSI values before action conditions and registry writes to preserve canonical settings across upgrades.
Extend regression coverage for alias normalization and explicit overrides while retaining non-blocking failure handling.
Signed-off-by: fufesou <linlong1266@gmail.com>
* refactor(windows): simplify installer firewall option
Signed-off-by: fufesou <linlong1266@gmail.com>
* refactor(windows): retain legacy firewall installer flow
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(msi): default unknown firewall values to enabled
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): accept case-insensitive firewall option names
Keep the MSI registry search consistent with existing options and document the direct machine-hive alternative.
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): stabilize privacy mode 2 initialization
First-time Amyuni setup can reset the display layout after the monitor
appears. Prepare it on a worker outside the privacy mutex and connection
loop, keeping remote input and video responsive during initialization.
Poll DXGI for five seconds without capture loss, with a 20-second deadline.
Log and retain the full wait when DXGI cannot be observed. Cancel pending
activation on disable, disconnect or permission revocation.
Validate active outputs before reporting success and detect subsequent
privacy loss in the display loop. Notify the authenticated owner directly
without depending on the connection manager.
Validation: default test build and two privacy-mode regression tests;
Flutter cargo check --tests; formatting and whitespace checks; successful
first-install hardware test with 12.1-second activation and manual exit.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): preserve privacy monitor cleanup and allow retries
Carry the monitor created during Amyuni preparation into privacy mode's
existing cleanup list so exiting removes one monitor instead of all managed
virtual monitors.
Wait cancellably for ongoing preparation when activation is retried, keeping
the connection responsive. Add a regression test for waiting and cancellation.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): skip privacy restoration when cancelling preparation
A cancelled preparation worker already owns cleanup. Acknowledge cancellation without restoring an inactive privacy layout, which could otherwise remove all managed virtual monitors before the worker finishes.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): roll back inactive privacy monitor preparation
Attempt to undo an accepted Amyuni monitor request when privacy preparation fails or is cancelled, even if active-display enumeration cannot see the requested monitor. Preserve non-forced removal for active outputs and report cleanup failures.
Signed-off-by: fufesou <linlong1266@gmail.com>
* chore(windows): trim privacy diagnostics and adjust polling
Remove temporary activation logs and move the preparation-lock test module after the other Amyuni items. Use a 300 ms polling interval for display stabilization and preparation-lock cancellation checks.
Signed-off-by: fufesou <linlong1266@gmail.com>
* perf(windows): probe privacy readiness without pixel readback
Check DXGI duplication access without copying or mapping desktop pixels during first-install privacy preparation. Reuse frame cleanup and preserve the existing stability window and normal capture path.
Log probe creation and recreation timing, and clarify which display flags are excluded from privacy validation.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): probe the prepared display during privacy initialization
Observe the newly created Amyuni output so the readiness probe does not contend with video capture for the same DXGI duplication interface.
Retry temporary DXGI unavailability within the existing initialization deadline while retaining the stability interval and explicit full-wait fallback.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): report privacy preparation cleanup failures
Preserve the single-monitor safety checks when cleaning up a prepared Amyuni display and propagate driver errors directly.
Leave ordinary monitor removal and best-effort bulk cleanup unchanged.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): retain privacy initialization wait across retries
Remember unfinished first-install observation after monitor creation or stability failures. Recheck it when reusing an existing Amyuni output, and clear it only after the existing observation policy completes.
Keep the state local to privacy preparation and serialize access with the existing preparation lock.
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): validate privacy preparation and avoid display stalls
Keep initialization pending when its output disappears, and wait for an active output count decrease before completing preparation cleanup.
Skip privacy checks while activation or restoration holds the mutex, report poisoned locks, and log preparation errors with throttling.
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(mobile): align the virtual mouse handle with the peer cursor
The handle origin was reported in window coordinates, while the mouse
mapping reads it as canvas-local: on mobile CanvasModel.topToEdge and
leftToEdge are 0, so nothing compensates for the safe area. The peer
cursor was therefore drawn one inset away from the handle arrow, and a
tap landed where that cursor was rather than under the arrow.
Subtract the same padding InputModel._pointerPositionForRemoteCanvas
applies, so both entry points hand over coordinates in one space.
* test(mobile): pin the virtual mouse cursor to the canvas
The handle origin has to reach the mouse mapping as a canvas coordinate,
otherwise the peer cursor draws one safe-area inset away from the handle
arrow. Reports the handle position through a nonzero inset, so a return to
window coordinates moves the point by that inset and fails here.
Signed-off-by: alonginwind <sunzl3721@gmail.com>
---------
Signed-off-by: alonginwind <sunzl3721@gmail.com>
* fix(wayland): preserve unmatched streams and validate display offset cache
- Keep unmatched streams in `sort_streams` instead of dropping them when no
monitor sits at `(0, 0)` (e.g. vertically offset multi-monitor layouts).
- Reject stale `wayland-pipewire-display-offset` entries whose offsets do not
match any current display origin, skip caching unresolved `(0, 0)` defaults,
and fall back to rotated/logical display dimensions in `try_fill_positions`.
- Replace global `HAS_POSITION_ATTR` with per-stream `has_position` and
per-session `positions_filled` tracking.
- Do not latch `PIPEWIRE_INITIALIZED` when `init_displays` yields no displays.
Fixes https://github.com/rustdesk/rustdesk/issues/17027
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix(wayland): restrict fallback display matching to unique outputs
- Keep `try_fill_positions` exact physical-mode matching for multi-match
cursor disambiguation, and apply rotated/logical-size fallback only
when a single display matches uniquely (leaving ambiguous cases
unchanged and uncached).
- Inline the unmatched-stream preservation directly into `sort_streams`
without the generic `sort_by_display_order` wrapper.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix(wayland): cache only resolved display offsets and drop the size fallback
- Remove `unique_fallback_origin`: a unique rotated output is already placed
by `reconciled_origin`, and matching a stream size against `logical_size`
could bind a region or virtual stream to a scaled output and cache it.
- Report from `fill_multi_matched_positions` whether every stream was told
apart, and do not cache the offsets when it was not (no embedded cursor
mode, or a probe failed).
- Require each cached offset to name a display of its own, so a cache holding
two streams on one output is rejected; mirrored outputs still pass.
- Import `serde_json` in the test module: on Linux scrap only gets it through
`hbb_common`.
- Leave `init_displays` as on master: once `sort_streams` keeps unmatched
streams the display list is no longer emptied, so the empty-list check
cannot fire, and the initialization-state change is a separate matter.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs
* chore(wayland): drop edits unrelated to the fix
- Remove the comment left over from HAS_POSITION_ATTR.
- Restore Vec::new() in sort_streams.
- Drop the empty-token check in validate_display_offset_cache: the cache
is never written without a token, and the token comparison already
rejects an empty current token.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs
* fix(wayland): narrow the #17027 fix to sort_streams
Revert the offset-cache, position-flag and disambiguation changes from
the earlier commits; only sort_streams changes now.
- sort_streams keeps a stream whose position names no display (the KDE
full-workspace stream at (0, 0) in #17027) and, as on master, still
drops a stream at an origin another stream already took. Keeping that
one too let a same-size stream left at another display's origin send
pointer input to that display.
- With the stream kept, the stale [[0, 0]] offset cache and the global
HAS_POSITION_ATTR no longer break #17027: a cached (0, 0) gives the
position recomputing would. Both stay as on master.
- The offset cache test goes with the validation it covered.
sort_streams takes PipeWireCapturable, which holds a D-Bus connection
and a fd, so it has no unit test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* Initialize libsodium before anything uses it
The client called sodium_init() only when the update signature check
or the trusted device token first ran. That call also chooses
libsodium's implementations: where a build has both, it moves Poly1305
from the default one to the SSE2 one, whose state is laid out
differently, so a secretbox or AEAD operation another thread was in
the middle of finished under the other implementation. In one thread,
a computation straddling the call gives a wrong tag. The call now runs
once at process start: first in global_init, which core_main begins
with, and at the top of the FFI initialize, which on mobile verifies a
signature before it reaches global_init.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8
* Log a failed libsodium initialization and start anyway
As hbbs does: a client that does not start is worse than one that
runs with libsodium as it was before this change, and sodium_init()
fails only when it cannot lock its own mutex.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8
* Initialize libsodium where Android starts the server
Started at boot, MainService calls startServer with no Flutter engine,
so initialize never ran: the server worked with libsodium uninitialized
until the UI opened, and that first sodium_init() could land while
sessions were running. startServer now makes the call first, before it
verifies the custom client's signature or spawns the server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkpVy2ufxgEjKd3SjXPnJ8
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
`move_relative_` halved each delta with `(v as f32 / 2.).ceil()`, which
maps -1 to 0 but +1 to 1. Single-unit moves left or up were dropped while
right or down were kept, so in relative-mouse mode the pointer drifted
toward the bottom-right.
Round half away from zero instead: positive deltas give the same values
as before and negative deltas now mirror them. The /2 scaling is kept.
Co-authored-by: Gabe Fletcher <gabe@detailinggrowth.com>
* fix(linux): keep the cursor visible over blank X11 cursors
Signed-off-by: luoming <ming.luo@uwa4d.com>
* fix(linux): test sign-extended X11 cursor pixels
- Drop the `count != 0` guard. With non-null pixels, a 0x0 image
gives an empty slice, which the predicate already reports as hidden.
- Assert the sign-extended opaque pixel that 64-bit Xlib actually
returns (`_XRead32` copies through `int *`), so a later signed
comparison such as `p >= 0x0100_0000` fails the test.
- Use the file's `c_long` import in the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs
* fix(linux): restore the explicit empty cursor image check
Keep `count != 0` so an empty image is visibly treated as hidden,
without relying on the zero-length `from_raw_parts` rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkkfvhEPKVg85ZHovfs
---------
Signed-off-by: luoming <ming.luo@uwa4d.com>
Co-authored-by: luoming <ming.luo@uwa4d.com>
Co-authored-by: rustdesk <71636191+rustdesk@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(security): prevent privilege escalation via registry recovery (ZDI-CAN-34805)
Validate all registry recovery inputs before accessing HKEY_LOCAL_MACHINE:
- Path must start with the graphics drivers connectivity prefix
- Key name must be exactly "Recent"
- Subkey cannot contain path separators, dots, or null bytes
- Old and new values must match in type and length
Validation applies unconditionally to both force=false and force=true paths,
blocking arbitrary registry writes from low-privilege IPC clients.
Maintain existing recovery lifecycle and config persistence. Add three
regression tests covering the reported attack vector and data validation.
Reported-by: BoGeun Jang <TrendAI Zero Day Initiative>
Signed-off-by: fufesou <linlong1266@gmail.com>
* fix(windows): preserve registry recovery behavior
Restore historical type conversion and force behavior while retaining registry target validation. Replace format restrictions with a regression test for variable-length recovery records.
Signed-off-by: fufesou <linlong1266@gmail.com>
---------
Signed-off-by: fufesou <linlong1266@gmail.com>
* Sync the Android input service state to enable-keyboard from Kotlin
enable-keyboard mirrors whether InputService is running, but only the
Flutter UI updated it. When the service was turned on from system
settings while the UI was not running, the option stayed N and new
connections were denied keyboard permission until the app was opened.
InputService now reports its state directly, and MainService reports it
again once startServer has set the config directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
* Stop the Android UI from resetting enable-keyboard on start
ServerModel set enable-keyboard to N on every mobile UI start and relied
on the input state message to set it back. Until that message arrived,
open connections lost keyboard permission. Android now keeps the option
in step with InputService natively, so keep the reset on iOS only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Android's input control and clipboard toggles call switch_permission_all,
which reaches every CM client. On a file-transfer, view-camera or
port-forward connection, the keyboard switch set keyboard = true and both
switches re-subscribed the clipboard service, so the host's clipboard
changes were sent to a peer that was not granted a remote session.
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Subscribe clipboard services from permission switches only after authorization
Permission toggles in the accept window reach the connection before the
peer is authorized. The keyboard, clipboard and file switches subscribed
the clipboard services at once, so anything the host copied while the
window was open was sent to a peer that had not been accepted.
Subscribe only once authorized, as the audio switch does; on
authorization try_sub_monitor_services subscribes from the recorded
values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
* Say "until authorized" in the permission switch comment
The switch arrives after the login request, so "before login" was
inaccurate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(fs): recognise compressed file extensions in any letter case
* fix(fs): compare extensions without allocating and trim the test
* test(fs): keep only the uppercase extension checks
---------
Co-authored-by: Ruslan Zaitsev <293677063+Dofam1nch1k@users.noreply.github.com>
* fix(lang): keep the ?key= and @public syntax in the ID field tooltips
es and hr translated ?key=, da translated @public, and the Catalan
id_input_tip held the text of a different string. Restore the literal
tokens and clear the Catalan entry so the English tooltip is shown.
* fix(lang): clear the Catalan web ID tooltip and require <id>@public in the test
---------
Co-authored-by: Ruslan Zaitsev <293677063+Dofam1nch1k@users.noreply.github.com>
Add docs/SECURITY-RU.md. In docs/README-RU.md: add the missing languages to the language bar, fix the Docker anchor in the navigation, name the Sciter library in the download instruction, add the libs/base entry to the file structure, and fix a typo.
Co-authored-by: Ruslan Zaitsev <293677063+Dofam1nch1k@users.noreply.github.com>
- Move the misuse disclaimer to the top and use a valid [!Caution] alert
([!Attention] is not a GitHub alert type and rendered as a plain quote)
- Drop the dead #serveurs-publics-libres link from the navigation bar
- Add the missing parts: FAQ and nightly build links, F-Droid and
Flathub badges (French versions), build guide link (French doc),
openSUSE section, Flutter/CI note, libs/base, libs/clipboard, flutter
- Update package lists, clone and submodule commands, and screenshots
to match README.md
- Refresh the language bar and the translation call to action
Signed-off-by: vinii34 <193139747+vinii34@users.noreply.github.com>
Co-authored-by: vinii34 <193139747+vinii34@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The only Norwegian table is nb (Bokmal), but systems also report Norwegian as no (the macrolanguage, e.g. no_NO) or nn (Nynorsk). resolve_lang returned no/nn, which match no table, so the UI fell back to English.
Co-authored-by: Ruslan Zaitsev <293677063+Dofam1nch1k@users.noreply.github.com>