fufesou
2842315b1d
Fix/linux shortcuts inhibit ( #14302 )
...
* feat: Inhibit system shortcuts on Linux
Fixes #13013 .
Signed-off-by: Max von Forell <max@vonforell.de >
* fix(linux): shortcuts inhibit
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: Max von Forell <max@vonforell.de >
Signed-off-by: fufesou <linlong1266@gmail.com >
Co-authored-by: Max von Forell <max@vonforell.de >
2026-02-11 16:11:47 +08:00
fufesou
be4bbd018d
fix(install): linux xdo ( #14096 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2026-01-21 20:43:15 +08:00
fufesou
998b75856d
feat: Add relative mouse mode ( #13928 )
...
* feat: Add relative mouse mode
- Add "Relative Mouse Mode" toggle in desktop toolbar and bind to InputModel
- Implement relative mouse movement path: Flutter pointer deltas -> `type: move_relative` -> new `MOUSE_TYPE_MOVE_RELATIVE` in Rust
- In server input service, simulate relative movement via Enigo and keep latest cursor position in sync
- Track pointer-lock center in Flutter (local widget + screen coordinates) and re-center OS cursor after each relative move
- Update pointer-lock center on window move/resize/restore/maximize and when remote display geometry changes
- Hide local cursor when relative mouse mode is active (both Flutter cursor and OS cursor), restore on leave/disable
- On Windows, clip OS cursor to the window rect while in relative mode and release clip when leaving/turning off
- Implement platform helpers: `get_cursor_pos`, `set_cursor_pos`, `show_cursor`, `clip_cursor` (no-op clip/hide on Linux for now)
- Add keyboard shortcut Ctrl+Alt+Shift+M to toggle relative mode (enabled by default, works on all platforms)
- Remove `enable-relative-mouse-shortcut` config option - shortcut is now always available when keyboard permission is granted
- Handle window blur/focus/minimize events to properly release/restore cursor constraints
- Add MOUSE_TYPE_MASK constant and unit tests for mouse event constants
Note: Relative mouse mode state is NOT persisted to config (session-only).
Note: On Linux, show_cursor and clip_cursor are no-ops; cursor hiding is handled by Flutter side.
Signed-off-by: fufesou <linlong1266@gmail.com >
* feat(mouse): relative mouse mode, exit hint
Signed-off-by: fufesou <linlong1266@gmail.com >
* refact(relative mouse): shortcut
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2026-01-09 10:03:14 +08:00
fufesou
8fe10d61ea
fix(terminal): linux, macOS, win as the controlled ( #13930 )
...
1. `TERM` on linux terminal.
2. `htop` command not found on macOS.
3. `vim` and `claude code cli` hung up on windows.
Signed-off-by: fufesou <linlong1266@gmail.com >
2026-01-07 16:07:14 +08:00
fufesou
6a701f1420
fix: linux, home ( #13879 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-12-23 15:43:31 +08:00
fufesou
a32d36a97b
fix(sudo -E): Ubuntu 25.10, run_as_user ( #13796 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-12-14 20:52:10 +08:00
rustdesk
4f4da20fc0
revert: flatpak command line is_root
2025-12-05 17:26:06 +08:00
rustdesk
eb0174ea53
flatpak command line is_root
2025-12-05 17:15:29 +08:00
Greg
1277c7d60c
See https://github.com/rustdesk/rustdesk/discussions/13350 ( #13427 )
...
This adds DBUS_SESSION_BUS_ADDRESS to the collection of "pilfered environment" variables on Linux.
The net effect should be that Wayland sub processes launched by rustdesk --service (--server and --tray) get the right bus.
Presumably this happens with by systemd environment management, but on Void Linux & other non-systemd, this prevents a connection to a client from any controller with a message about service not available. (As the DBUS lookup fails).
On X11, this is not an issue as the retrieval of Wayland capabilities via DBUS registry is not required.
In general, this is a more robust Wayland solution than just grabbing WAYLAND_DISPLAY, since WAYLAND is heavily dependent on DBUS for protocol registration.
Co-authored-by: Greg Ke <Greg-repo-sync@akua.com >
2025-11-05 10:29:37 +08:00
fufesou
475bef63d7
fix: linux, env TERM ( #12325 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-07-17 08:46:32 +08:00
fufesou
f766d28c36
Fix/linux keep terminal sessions ( #12222 )
...
* fix: linux, keep terminal sessions
Signed-off-by: fufesou <linlong1266@gmail.com >
* fix: terminal service stucked at reader join
Signed-off-by: fufesou <linlong1266@gmail.com >
---------
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-07-03 17:27:50 +08:00
fufesou
58fd2d3ccd
fix: linux, get_env, break loop ( #12174 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-06-26 15:47:01 +08:00
fufesou
bb6e080c1c
fix: linux workaround cmd path ( #12172 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-06-26 09:49:22 +08:00
rustdesk
f919f297ac
fix https://github.com/rustdesk/rustdesk/issues/11943
2025-06-01 16:44:55 +08:00
luzpaz
042d031a04
fix: source typo in src/clipboard.rs ( #11726 )
...
Found via codespell
2025-05-22 16:17:59 +08:00
fufesou
20fcddffbd
fix: build ( #11611 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-04-30 23:49:18 +08:00
fufesou
198967ea35
fix: allow logon screen password, on lock screen ( #11566 )
...
Signed-off-by: fufesou <linlong1266@gmail.com >
2025-04-25 10:37:09 +08:00
rustdesk
cc860b2906
https://github.com/flathub/flathub/pull/5670#issuecomment-2395337173
2024-10-07 15:26:41 +08:00
rustdesk
e7353be0cd
fix https://github.com/flathub/flathub/pull/5670#issuecomment-2395067890
2024-10-06 09:25:40 +08:00
21pages
88a99211f3
replace pkexec with gtk sudo ( #9383 )
...
* Fix https://github.com/rustdesk/rustdesk/issues/9286 , replace pkexec
with gtk sudo. Tested on gnome (ubuntu 22.04, debian 13), xfce (manjaro, suse), kde (kubuntu 23), lxqt (lubuntu 22), Cinnamon (mint 21.3), Mate (mint 21.2)
* Fix incorrect config of the main window opened by the tray, replace
xdg-open with run_me, replace with dbus + run_me
* Fix `check_if_stop_service`, it causes the problem fixed in
https://github.com/rustdesk/rustdesk/pull/8414 , now revert that fix and fix itself.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-09-19 18:47:37 +08:00
21pages
f0ca4b9fee
--no-server parameter to avoid server ipc occupied by ui ( #9272 )
...
Signed-off-by: 21pages <pages21@163.com >
2024-09-06 14:43:38 +08:00
rustdesk
421ddc0016
fix https://github.com/rustdesk/rustdesk/issues/4863
2024-08-06 12:11:03 +08:00
Bot_wxt1221
de375c91bb
fix: nixos's headless mode. ( #8774 )
2024-07-21 17:05:32 +08:00
rustdesk
adf0226641
fix ci and make macos service time check more aggressive
2024-06-19 19:10:44 +08:00
rustdesk
137f58a84a
refactor macos service for delegate again, remove runme in install service of linux
2024-06-19 18:49:49 +08:00
21pages
7c45a68870
linux install service, stop service before start ( #8414 )
...
If the stop-service option before installation is "", after
installation --sever is also started up. When clicking to
start service, restart --server to make it read the config file,
otherwise the service can't be started util --server is restarted.
Signed-off-by: 21pages <sunboeasy@gmail.com >
2024-06-19 16:29:40 +08:00
fufesou
534fc9c40c
fix: linux, login wayland, server ( #8111 )
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2024-05-21 23:35:47 +08:00
fufesou
96f41fcc02
refact: custom client, more advanced settings ( #8085 )
...
* refact: custom client, more advanced settings
Signed-off-by: fufesou <shuanglongchen@yeah.net >
* feat: custom client, more advanced settings
Signed-off-by: fufesou <shuanglongchen@yeah.net >
---------
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2024-05-18 23:13:54 +08:00
rustdesk
7ce0b225ef
remove linux_headless/appimage/flatpak feature
2024-05-02 13:23:32 +08:00
rustdesk
a924a876ae
fix app name refactor
2024-05-01 21:29:11 +08:00
rustdesk
7ce5f8e8b6
fix ci
2024-05-01 13:05:50 +08:00
rustdesk
08b7e036b4
test vcpkg new in android
2024-05-01 12:58:27 +08:00
Sahil Yeole
3811f41076
Feat: Follow remote cursor and window focus | Auto display switch ( #7717 )
...
* feat: auto switch display on follow remote cursor
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* feat: auto switch display on follow remote window focus
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build and remove unused imports
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix linux get_focused_window_id
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* lock show remote cursor when follow remote cursor is enabled
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix config
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* prevent auto display switch on show all display and displays as individual windows
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix options
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix options
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* remove unused function
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* remove unwraps and improve iterations
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* set updateCursorPos to false to avoid interrupting remote cursor
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* update lang
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix web build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* update checks for options and enable in view mode
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use focused display index for window focus service
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use window center for windows display focused
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* remove unused imports
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use libxdo instead of xdotool
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix multi monitor check
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* enable show cursor when follow cursor is default
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* remove show_all_displays,use runtime state instead
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix show cursor lock state on default
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* remove view mode with follow options
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use separate message for follow current display
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix options
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* sciter support for follow remote cursor and window
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* add check for ui session handlers count
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use cached displays and remove peer info write
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* No follow options when show all displays
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* No follow options when multi ui session
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* turn off follow options when not used|prevent msgs
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use window center for switch in linux
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* use subbed display count to prevent switch msgs
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix web build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* move subbed displays count
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* add noperms for window focus
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* add subscribe for window focus
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* remove window_focus message and unsub on multi ui
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
* add multi ui session field
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
---------
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com >
2024-04-25 13:26:02 +08:00
fufesou
2e11a8b458
Fix. Linux, run_cmds, trim new line ( #7579 )
...
* Fix. Linux, run_cmds, trim new line
Signed-off-by: fufesou <shuanglongchen@yeah.net >
* add tests
Signed-off-by: fufesou <shuanglongchen@yeah.net >
---------
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2024-04-02 14:47:13 +08:00
rustdesk
85f387bfb9
improve https://github.com/rustdesk/rustdesk/discussions/5631#discussioncomment-8916273
2024-03-27 00:38:13 +08:00
fufesou
e3420fd563
Refact. Linux, x11, user --server ( #7400 )
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2024-03-15 22:18:14 +08:00
Sahil Yeole
0f307e7ca2
preserve sudo env; required for WAYLAND_DISPLAY
...
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
2023-12-01 05:14:09 +05:30
Sahil Yeole
7ac49287df
set WAYLAND_DISPLAY env
...
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
2023-12-01 05:13:03 +05:30
21pages
f9ee0189f0
format log, add space after colon
...
Signed-off-by: 21pages <pages21@163.com >
2023-11-18 09:52:46 +08:00
fufesou
5c23dfd633
selinux tip, remove rust dep 'selinux'
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-10-22 14:22:15 +08:00
fufesou
f531cd23ee
add selinux tip
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-10-21 23:24:54 +08:00
dignow
b3948910ff
fix is x11, on conn
...
Signed-off-by: dignow <linlong1265@gmail.com >
2023-10-21 13:10:51 +08:00
21pages
68ef1fc9e0
show wallpaper only when support, show test on checked
...
Signed-off-by: 21pages <pages21@163.com >
2023-10-14 19:22:42 +08:00
21pages
d3ce8203be
win,linux remove desktop wallpaper
...
Signed-off-by: 21pages <pages21@163.com >
2023-10-13 13:58:11 +08:00
fufesou
bd6323ccae
fix, xwayland server env, check xwayland running
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-10-07 00:40:16 -05:00
fufesou
4326bfa504
fix, xwayland server envs, check Xwayland
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-10-07 00:40:16 -05:00
fufesou
b7a4c0664b
fix, wayland --server, display env, better way to find the envs
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-10-07 00:40:16 -05:00
fufesou
da7bcf89d4
fix, wayland --server, envs
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-10-07 00:40:16 -05:00
Sahil Yeole
13da75c2b6
fix wayland server starting late
...
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com >
2023-09-25 16:53:34 +05:30
fufesou
db2e4f30a7
Privacy mode, msgbox, add details
...
Signed-off-by: fufesou <shuanglongchen@yeah.net >
2023-09-17 10:53:04 +08:00