37 Commits

Author SHA1 Message Date
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
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
rustdesk
e5379bb073 send2fa in sciter 2024-01-19 19:29:04 +08:00
rustdesk
ac8fc71b3b autoLogin and trustThisDevice are two different things 2023-06-22 22:11:35 +08:00
21pages
0450eb51a1 fix JSON parse empty string
Signed-off-by: 21pages <pages21@163.com>
2023-06-20 18:18:33 +08:00
rustdesk
baecf3edb8 enc punch 2023-05-14 18:17:02 +08:00
fufesou
127ab57d62 ignore 'gdm' on loginctl
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-03 13:16:54 +08:00
fufesou
10eddc139c linux virtual display, init commit
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-03 13:16:49 +08:00
21pages
05c549a5fe approve mode, cm sync option
Signed-off-by: 21pages <pages21@163.com>
2022-11-20 20:28:47 +08:00
21pages
ca8cb5a3b0 portable-service: better prompt message
Signed-off-by: 21pages <pages21@163.com>
2022-11-15 17:05:12 +08:00
fufesou
9385e95b4e debug msgbox in sciter ui
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2022-10-17 22:00:48 +08:00
fufesou
77de0d05f9 msgbox & translations
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2022-10-17 22:00:44 +08:00
Asura
4423a18e79 Opt svg of keyboard 2022-08-29 17:14:05 +08:00
Asura
1b0fb5132c Support switching keyboard mode by UI 2022-07-23 20:51:01 +08:00
21pages
e46019a171 password: safe/random personal password
Signed-off-by: 21pages <pages21@163.com>
2022-07-18 21:27:56 +08:00
rustdesk
c1bad84a86 100% open source 2022-05-12 17:35:25 +08:00
rustdesk
bbe902d92e improve mac service 2022-04-27 19:21:38 +08:00
rustdesk
f95f9e408a workaround for wrong password input hanging 2022-04-18 23:41:43 +08:00
rustdesk
75c9a8c561 remote min size, android icon and scrap memory safety 2022-04-14 20:44:43 +08:00
rustdesk
0dd4087408 fix file transfer hanging if disabled, and add trans 2022-03-22 17:09:45 +08:00
open-trade
4945605009 fix on cm (connectin not closed somehow) and refactor isEnterKey 2022-02-09 16:06:44 +08:00
rustdesk
eb49af843c tmp solution for msgbox in scrollable 2022-02-04 11:20:01 +08:00
rustdesk
39ea73657d typo 2022-02-01 21:52:07 +08:00
rustdesk
3112792b7b fix new msgbox when wrong password 2022-02-01 16:32:56 +08:00
rustdesk
cd62d7024b new msgbox 2022-02-01 02:38:52 +08:00
open-trade
c0b6367137 sock5 gui part 2022-01-05 18:34:30 +08:00
open-trade
b24e16d6c1 bug fix for msgbox, todo: test more for msgbox in file_transfer.tis 2022-01-05 16:32:45 +08:00
rustdesk
66af938858 https://sciter.com/forums/topic/menu-not-be-hidden-when-open-dialog-on-linux/ 2021-12-29 23:40:24 +08:00
rustdesk
365fc90d8b refactor msgbox 2021-12-29 11:42:43 +08:00
rustdesk
af218dbc83 internationalization 2021-12-25 16:45:22 +08:00
open-trade
334c94ceb3 https://github.com/rustdesk/rustdesk/issues/210 2021-12-22 14:28:08 +08:00
Starccy
fb126164ef use multiple jobs to delete 2021-10-19 21:52:59 +08:00
rustdesk
4e85841398 refactor msgbox retry 2021-08-11 01:28:53 +08:00
rustdesk
bebe136834 less green 2021-07-25 02:09:57 +08:00
rustdesk
2adc774d8a fix on linux 2021-05-02 21:19:48 +08:00
rustdesk
d1013487e2 source code 2021-03-29 15:59:14 +08:00