UNITRONIX 18ed13074f fix(panel): repair user group policies and the Web Remote viewer
Refs #512
Refs #514

Two panel regressions that each made a working feature look broken.

#512 — user groups could not be saved or deleted:
panelAccessPolicyService.resolveCeilingForSubject() calls
db.getUserGroupMembers(), which existed in neither the SQLite nor the
PostgreSQL adapter, nor in the services/database.js facade. Any group save
or delete failed with "db.getUserGroupMembers is not a function" after
leaving a half-created group row behind. The suite stayed green because
tests/panel-access.ceiling.test.js mocks the function, so no test reached
the real adapter.
  - add getUserGroupMembers(guid) to both adapters and the facade
  - new regression test uses the real SQLite adapter end to end
  - the empty-group ceiling clamp is intentionally unchanged (audit H7);
    the group list now explains why levels are clamped to none

#514 — Web Remote did nothing:
three independent defects, so fixing one left the next one visible.
  - window.open ran inside a 300 ms timer, outside the user gesture, so
    Chrome blocked it silently; the window is now opened synchronously
  - the window was pointed at /remote/, the device picker, which never
    loads remote.js and so never consumed the queued session; it now
    navigates straight to /remote/<deviceId>, where the id is in the URL
    and no queue handoff is needed
  - an empty password + Connect returned without feedback; it now shows a
    localized hint and clears it on input
  - explicit width/height so the small-screen gate does not hide the viewer
  - new contract test locks in all three properties

New i18n keys (users.group_no_members_ceiling_hint,
remote.password_empty_hint) are translated in all 26 locales. Also fixes
the French user-group member count, which had German text.

Reported-by: @mh254

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-20 08:57:08 +01:00
2026-09-13 21:37:13 +02:00
2026-03-02 00:45:07 +01:00
2026-03-06 23:18:26 +01:00

BetterDesk

BetterDesk



License Go Node.js Version

Sponsor Buy Me a Coffee Discord

Self-hosted RustDesk-compatible server in Go (one binary instead of hbbs + hbbr) plus a Node.js web console.

Wiki · Privacy · Sponsors · Changelog


Honorary supporter

INSOLVE — Honorary Supporter

INSOLVE — see SPONSORS.md for everyone who backs the project.


Alpha desktop apps: Tauri MGMT / Agent clients are not for production. Use the web console and a normal RustDesk client. Details: Alpha notice.

Your data stays on your server. The project does not run vendor analytics — PRIVACY.md.

AI-assisted development: BetterDesk is created and maintained with the assistance of artificial intelligence tools.


Quick start

Linux

git clone https://github.com/UNITRONIX/BetterDesk.git
cd BetterDesk
sudo ./betterdesk.sh

Choose 1 for a new install, or sudo ./betterdesk.sh --auto.

Docker

One container with everything inside (server + relay + web console) — the recommended setup:

curl -fsSL https://raw.githubusercontent.com/UNITRONIX/BetterDesk/main/docker-compose.quick.single.yml -o docker-compose.yml
docker compose pull && docker compose up -d
docker compose exec betterdesk betterdesk-show-admin-credentials

Open http://your-server:5000 (plain HTTP, not HTTPS).

Legacy two-container layout (split images)
curl -fsSL https://raw.githubusercontent.com/UNITRONIX/BetterDesk/main/docker-compose.quick.yml -o docker-compose.yml
docker compose pull && docker compose up -d
docker compose exec console betterdesk-show-admin-credentials

The split layout is kept for existing deployments (API port 21114, single container uses 21121). New installs should use the all-in-one image above.

Windows

Run betterdesk.ps1 as Administrator — see the Installation wiki.


Documentation

Topic Where
Full guides GitHub Wiki
Install / Docker / clients Installation · Docker · Client setup
Config, TLS, updates Configuration · TLS · Panel updates
Monitoring / WoL Monitoring · Unattended & WoL
Help Troubleshooting · FAQ
Privacy / license PRIVACY.md · Licensing
Developers docs/ · API · CDAP · Contributing

Wiki source in-repo: docs/wiki/ (sync with scripts/sync-wiki.ps1 / .sh).


Web console preview

The BetterDesk web console defaults to the UX 3.5 interface; an opt-in UX 3.6 beta layout (grouped sidebar, list-first devices, per-topic settings) is available in Settings → General. These preview images show the UX 3.5 dark theme in English with fictional device data:

BetterDesk web console login BetterDesk web console dashboard
Login Dashboard
BetterDesk devices list BetterDesk device details
Devices Device details
BetterDesk settings updates
Settings → Updates

See the Web Console wiki page for the full visual tour and panel capabilities.


Ports (short)

Port Role
21116 TCP+UDP Signal
21117 TCP Relay
21121 RustDesk Client API (Go; optional Node proxy)
21114 Admin REST (usually localhost)
5000 Web console
21122 CDAP (optional)

Contributing

Diagnostics → issue → fork / PR. See docs/development/CONTRIBUTING.md.


Credits

Console redesign — UX 3.6

The UX 3.6 beta console layout is modelled on the community redesign by Linus Rath (@rathlinus) — the grouped sidebar (Devices / Support / People / Activity / Settings), the list-first device view with side panels, per-topic Settings with search, and light/dark coverage across all 26 locales. The redesign was proposed in issue #493 (PR #495) and is implemented in BetterDesk's existing EJS/JavaScript/CSS stack rather than merged as a branch.

Design credit is recorded in docs/development/CONTRIBUTOR-ATTRIBUTIONS.md and shown in the console (Settings → General → Console interface).


License

AGPL-3.0. Optional Commercial Grant for eligible sponsors — docs/COMMERCIAL-GRANT.md.


Support

Languages
JavaScript 63.7%
Go 17.8%
CSS 6.9%
HTML 5.1%
Shell 4.1%
Other 2.4%