Skip to content

Instantly share code, notes, and snippets.

@VityaSchel
Last active March 19, 2026 18:37
Show Gist options
  • Select an option

  • Save VityaSchel/5650300159f89008ff6778b4963670de to your computer and use it in GitHub Desktop.

Select an option

Save VityaSchel/5650300159f89008ff6778b4963670de to your computer and use it in GitHub Desktop.
RustDesk hide_cm revert for free (hide connection management, revert https://github.com/rustdesk/rustdesk/pull/5544)
image

tfw maintainers want to squeeze money outta you so much they genuinely™ delete your instructions on how to revert their shitty client-side change to free open source code (AGPL-3.0 by the way) 🤡

image

here you go, a full guide on how to enable the "Hide connection management window" in FREE rustdesk version

  1. Install Rust and Cargo, Flutter
  2. Clone repository and check out to version 1.4.6: git checkout 1.4.6
  3. if these mfs delete it or something I attached a copy of the rustdesk/rustdesk git repository as a zip to this gist
  4. dart pub global activate fvm
  5. fvm install 3.24.5 && fvm use 3.24.5 --force
  6. make sure flutter --version says 3.24.5 it's very important, temporarily add fvm's flutter to your PATH if needed: export PATH="$HOME/fvm/versions/3.24.5/bin:$PATH"
  7. install flutter dependencies: cd flutter && flutter pub get
  8. install flutter_rust_bridge_codegen version 1.80.1 - the version is important: cargo install flutter_rust_bridge_codegen --version 1.80.1 --locked
  9. generate lib: flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart
  10. if you get "Couldn't find lib/libclang.so in specified locations" error: install libclang-dev and clang, find libclang on your system: find /usr -name "libclang*.so*" 2>/dev/null and symlink it to where flutter usually loads clang from, for me it was /usr/lib/llvm-14/lib, so sudo ln -s /usr/lib/llvm-19/lib/libclang.so /usr/lib/llvm-14/lib/libclang.so
  11. download rustdesk-revert-hide_cm-pr.patch from below and apply it in repository root using git apply rustdesk-revert-hide_cm-pr.patch
  12. run python build: python3 build.py --flutter
  13. install the resulting deb using sudo dpkg -i rustdesk-1.4.6.deb

if you get errors in rust/dart, you're probably running wrong version of flutter

if this guide is deleted, find it on https://git.hloth.dev

i'll also publish my deb file I got after 6 hours of attempts

good luck

This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment