21pages
bf5abdb520
refactor windows specific session, file transfer and waiting for image ( #7184 )
...
* refactor windows specific session, file transfer and waiting for image
1. File transfer doesn't show directory until correct session id is ensured
2. Fix file transfer, caused by `pi.username = self.lc.read().unwrap().get_username(&pi);` in `handle_peer_info` override empty username and `get_active_username` doesn't return currect session username
* Fix home directory not change when session changed, or wrong home directory
* Fix show empty remote directory rather than error messagbox when current session is in login screen
3. Show `Connected, waiting for image` after user choose the same
session id
Signed-off-by: 21pages <pages21@163.com>
* update translations
Signed-off-by: 21pages <pages21@163.com>
* Update connection.rs
---------
Signed-off-by: 21pages <pages21@163.com>
Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
2024-02-19 10:32:13 +08:00
21pages
0f44de7dc3
refactor windows specific session ( #7170 )
...
1. Modify the process to have the control side lead the session switching: After the control side sends a `LoginRequest`, the controlled side will add all session information and the current session ID in the `LoginResponse`. Upon receiving the `LoginResponse`, the control side will check if the current session ID matches the ID in the `LoginConfigHandler`. If they match, the control side will send the current session ID. If they don't match, a session selection dialog will pop up, the selected session id will be sent. Upon receiving this message, the controlled side will restart if different or sub service if same .
2. Always show physical console session on the top
3. Show running session and distinguish sessions with the same name
4. Not sub service until correct session id is ensured
5. Fix switch sides not work for multisession session
6. Remove all session string join/split except get_available_sessions in
windows.rs
7. Fix prelogin, when share rdp is enabled and there is a rdp session,
the console is in login screen, get_active_username will be the rdp's
username and prelogin will be false, cm can't be created an that
causes disconnection in a loop
8. Rename all user session to windows session
Known issue:
1. Use current process session id for `run_as_user`, sahil says it can
be wrong but I didn't reproduce.
2. Have not change tray process to current session
3. File transfer doesn't update home directory when session changed
4. When it's in login screen, remote file directory is empty, because cm
have not start up
Signed-off-by: 21pages <pages21@163.com>
2024-02-18 22:08:25 +08:00
fufesou
8c108065eb
Refact. Replace all tokio::time::interval()
( #7173 )
...
* Refact. Replace all `tokio::time::interval()`
Signed-off-by: fufesou <shuanglongchen@yeah.net>
* Refact Better min_interval for `ThrottledInterval`.
Signed-off-by: fufesou <shuanglongchen@yeah.net>
---------
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2024-02-18 21:18:00 +08:00
21pages
73d429d064
windows specific session, fix conn count ( #7133 )
...
Signed-off-by: 21pages <pages21@163.com>
2024-02-15 10:44:32 +08:00
Sahil Yeole
4bf3764b5d
Feat: Windows connect to a specific user session ( #6825 )
...
* feat windows connect to specific user session
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix import
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix multiple user session fields
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 file transfer
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix text color on light theme
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* feat windows connect to specific user session code changes and sciter support
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* update texts
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix sciter selected user session
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* add translations
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* Use Y,N options
* feat windows specific user code changes
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* Update dialog.dart
* Update connection.rs
* Update connection.rs
* feat windows specific user code changes
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix sciter
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* use lr.union
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove unused peer options
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* select user only when authorised and no existing connection
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* check for multiple users only once
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* optimise and add check for client version
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* use misc option message
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* update rdp user session proto
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix show cm on user session
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* Update pl.rs
* update on_message
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix cm
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove user_session_id
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix cm
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix multiple connections
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
---------
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
2024-02-14 23:59:17 +08:00
fufesou
0cf4711515
Refact, remove avoidable clone ( #7040 )
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2024-02-03 00:09:39 +08:00
21pages
2e16a2be56
fix port forward 2fa ( #6956 )
...
Signed-off-by: 21pages <pages21@163.com>
2024-01-22 19:57:23 +08:00
21pages
48102e9c53
opt 2fa ( #6942 )
...
1. switch sides not check 2fa
2. let self.authorized=true ahead of return, call try_start_cm when 2fa confirmed for updating authorized state
3. flutter 2fa dialog button color
port forward check and sciter will be later on
Signed-off-by: 21pages <pages21@163.com>
2024-01-21 21:53:29 +08:00
rustdesk
68afb89b99
a quick fix for 2fa
2024-01-21 15:19:18 +08:00
rustdesk
44e6b7dbb0
2fa for unattended access
2024-01-19 15:35:58 +08:00
21pages
89150317e1
add zero copy mode hareware codec for windows ( #6778 )
...
Signed-off-by: 21pages <pages21@163.com>
2024-01-02 16:58:10 +08:00
rustdesk
f47faa548b
revert test delay timeout to 1 sec since many deps on it, including
...
quality monitor, also change test delay with instant rather than
systemtime, because instant is stable
2024-01-02 16:23:47 +08:00
rustdesk
ca1ca21cf8
change TEST_DELAY_TIMEOUT from 1 to 3
2024-01-01 17:53:20 +08:00
fufesou
fc0fc5ea10
Fix. Do not send resolutions on file transfer conn ( #6748 )
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-12-25 16:47:40 +08:00
Sahil Yeole
445fe6e714
Feat: Wayland flatpak input support | Remote desktop portal ( #6675 )
...
* autogen portal code
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* use remote desktop portal
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove clipboard portal in favour of #6586
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove clipboard portal
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* use select_devices for input capture
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove embedded cursor code as not being used | return session path for input capture
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* setup rdp input
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove simulate example
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* setup rdp input raw key events + mouse movements
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix rdp raw key input
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* refact rdp raw key inpuy & fix right meta key
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* refact and support rdp layout mode key input
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* support rdp mouse clicks
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* support rdp mouse scroll
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* support rdp key sequence input
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* use rdp input only when uinput is not available
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* combine rdp input and get_capturables into a single rdp request
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* rdp fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* rdp fix build
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix rdp caps lock
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* format pipewire.rs
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* format rdp_input.rs
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* revert #6628 as rdp request state is now managed (better solution)
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix rdp crash on arch kde
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* rdp_input.rs improvements
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* refact request_remote_desktop
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* improve unwraps
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* remove unwraps
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* use session references instead of clones
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
---------
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
2023-12-19 10:44:58 +08:00
Sahil Yeole
4062d1920c
Fix: wayland repeated share screen prompts ( #6628 )
...
* fix wayland repeated screen share prompts
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix is_x11 import
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix supported resolutions import
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
* fix supported resolutions import
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
---------
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
2023-12-06 23:25:37 +08:00
21pages
50b81c2356
fix windows wakelock, add set_display ( #6623 )
...
Signed-off-by: 21pages <pages21@163.com>
2023-12-05 21:32:44 +08:00
RustDesk
64ed25879c
Merge pull request #6565 from fufesou/fix/elevated_switch_display
...
fix, elevated mode, switch display
2023-11-30 00:18:14 +08:00
fufesou
44cba7adf7
fix, prompt msg
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-29 23:50:17 +08:00
fufesou
5a8a64d284
fix, elevated mode, switch display
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-29 23:44:28 +08:00
21pages
e17378c6b3
fix macos and linux vm reboot
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-29 22:41:31 +08:00
21pages
13005e8242
replace reboot with force_reboot
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-29 17:26:13 +08:00
21pages
2de1c62daf
wake lock for all connection type
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-25 17:43:07 +08:00
fufesou
f41a8bc355
idd_not_support_tip to idd_not_support_under_win10_2004_tip
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-21 11:05:50 +08:00
fufesou
83dbf88ffb
feat, win10, virtual display, not support message
...
Signed-off-by: fufesou <shuanglongchen@yeah.ne>
2023-11-20 21:44:25 +08:00
fufesou
5064696480
send msgbox when plugging in/out virtual displays
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-20 15:46:22 +08:00
fufesou
85ddfc0739
remove redundent global variables
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-20 07:41:06 +08:00
21pages
f9ee0189f0
format log, add space after colon
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-18 09:52:46 +08:00
fufesou
f2f649319d
Remove redundant mutex
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-17 23:38:27 +08:00
fufesou
e09a050d41
Fix. Do not get displays on server start.
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-17 17:11:25 +08:00
fufesou
839d3365f8
fix, build ios
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-14 22:29:12 +08:00
fufesou
90ac8b7b0b
feat/virtual_display_privacy_mode
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-14 12:11:38 +08:00
21pages
1b08adb178
not use max fps by default
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-13 21:33:51 +08:00
RustDesk
627d21a00a
Revert "Fix, windows display orders"
2023-11-13 17:31:55 +08:00
RustDesk
0500f56163
Merge pull request #6385 from 21pages/only_windows_check_cm_exit
...
only windows no prelogin check cm exit
2023-11-12 22:18:55 +08:00
21pages
52e5d519ab
only windows no prelogin check cm exit
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-12 22:09:41 +08:00
fufesou
8f8c9ddc25
Fix, windows display orders
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-12 00:08:16 +08:00
21pages
1902134f03
cm get config
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-09 15:57:47 +08:00
21pages
36b574a5f8
close all connections if cm exit unexpected, and allow retry
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-08 13:01:09 +08:00
mcfans
32a29a5556
chore: use a match instead of unwrap error
2023-11-07 12:51:16 +08:00
mcfans
b522de3b56
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# Cargo.lock
# src/server/connection.rs
2023-11-07 12:13:15 +08:00
21pages
f2d345e7b1
fix missing log when removed directory names have same prefix
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-07 10:43:03 +08:00
21pages
d528fd3762
permisson block input
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-06 15:07:03 +08:00
21pages
663d355a48
cm file delete/create log
...
Signed-off-by: 21pages <pages21@163.com>
2023-11-06 14:24:50 +08:00
21pages
534bfad50f
opt codec
...
1. use src width/height to convert yuv
2. align dst yuv to avoid illegal memory access
3. init yuvfmt when new codec
4. move remote reset calls from empty conns judge to emtpy remote conns
judge
Signed-off-by: 21pages <pages21@163.com>
2023-11-03 11:52:41 +08:00
fufesou
58d073b516
fix, remove unused capturer when switching display
...
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-11-01 19:53:37 +08:00
RustDesk
12b8cbf3e0
Merge pull request #6229 from 21pages/444
...
yuv 444
2023-10-31 10:08:59 +08:00
21pages
f05f86dc80
444
...
Signed-off-by: 21pages <pages21@163.com>
2023-10-30 18:46:56 +08:00
ClSlaid
62563ad8a1
Merge branch 'feat/x11/clipboard-file/init' into feat/osx/clipboard-file
...
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
2023-10-30 15:34:40 +08:00
ClSlaid
30e85c8654
patch: make linux build ok
...
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
2023-10-29 23:42:04 +08:00