A remote projection input linkage method and device

By generating a matching verification of unified ownership status and operation type identifiers, the target mismatch problem in multi-client scenarios in remote projection is solved, and the input consistency between remote graphics applications and local applications is achieved.

CN123185249APending Publication Date: 2026-11-27WUHAN LAZYMAO WEIFU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611279756.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing remote projection methods are prone to target mismatch when multiple clients connect to the same remote session, resulting in poor input consistency between remote graphics applications and local applications.

Method used

By generating a unified ownership status and updating the status, and combining the operation type identifier and identification identifier set, matching verification and remote delivery mapping are performed to ensure that local operations are accurately delivered in remote applications.

Benefits of technology

It solves the target mismatch problem caused by multi-channel independent processing, improves the input consistency between remote graphics applications and local applications, and ensures that text input and file operations are accurately delivered in remote applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185249A_ABST
    Figure CN123185249A_ABST
Patent Text Reader

Abstract

The application provides a remote projection input linkage method and device, relates to the technical field of remote projection, and comprises the following steps: generating an initial unified attribution state through a remote interaction agent; updating the initial unified attribution state through a state updating algorithm to obtain an updated unified attribution state; acquiring an operation type identifier of a user, generating a local object reference according to the operation type identifier by a local interaction agent, acquiring an identification identifier set of the local interaction agent, and sending the operation type identifier, the local object reference and the identification identifier set to the remote interaction agent; the remote interaction agent performs matching verification according to the operation type identifier, the updated unified attribution state and the identification identifier set; when the matching verification is passed, the remote interaction agent performs remote delivery mapping according to the operation type identifier, the local object reference and the updated unified attribution state, generates a remote delivery object, and delivers the remote delivery object to a remote application corresponding to a remote activity window identifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of remote projection technology, and in particular to a remote projection input linkage method and device. Background Technology

[0002] Remote graphics application projection technology displays remote application windows or remote desktops on the local terminal and forwards local keyboard, mouse, clipboard, audio and other input / output capabilities to the remote application. It is widely used in scenarios such as remote WeChat, remote browsers, and remote office software.

[0003] Existing remote projection methods process text input, clipboard files, and drag-and-drop files independently through different channels, which can easily lead to target mismatch. In scenarios where multiple clients connect to the same remote session simultaneously, delivery errors are likely to occur. The remote application needs to receive and store the file completely during the paste stage, resulting in poor input consistency between the remote graphics application and the local application, which affects the synchronous projection of the remote graphics application. Summary of the Invention

[0004] To address the aforementioned problems, in a first aspect, the present invention provides a remote projection input linkage method, comprising: During a remote graphical session between a user and a remote application, an initial unified attribution state is generated through a remote interaction proxy. The initial unified attribution state is then updated using a state update algorithm to obtain an updated unified attribution state. The updated unified attribution state includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context state identifier, the remote focus input state, and the client file system reverse projection entry. Obtain the user's operation type identifier, which includes local input method submission operation, local clipboard file input operation, and local file drag and drop operation; the local interaction agent generates a local object reference based on the operation type identifier, obtains the identification identifier set of the local interaction agent, and sends the operation type identifier, local object reference, and identification identifier set to the remote interaction agent; The remote interaction agent performs matching and verification based on the operation type identifier, the updated unified attribution status, and the identification identifier set. When the matching and verification pass, the remote interaction agent performs remote delivery mapping based on the operation type identifier, the local object reference, and the updated unified attribution status, generates a remote delivery object, and delivers the remote delivery object to the remote application corresponding to the remote activity window identifier.

[0005] In one embodiment, updating the initial unified ownership state using a state update algorithm to obtain an updated unified ownership state includes: When a window focus switching event or a client control switching event occurs in a remote graphics session, the remote interaction agent captures the event window identifier and the event client identifier. The corresponding fields in the initial unified attribution state are updated by using the event window identifier and the event client identifier to obtain the updated unified attribution state.

[0006] In one embodiment, the local interaction proxy generates a local object reference based on the operation type identifier, including: When the operation type is identified as a local input method submission operation, the local interaction agent determines the associated display position of the local input method candidate interface based on the remote cursor information, receives the submission text generated by the local input method, and uses the submission text as a local object reference. When the operation type is identified as a local clipboard file input operation, the local file path stored in the local clipboard is used as a local object reference; When the operation type is identified as a local file drag-and-drop operation, the local file path that the user drags into the remote projection window is used as a local object reference.

[0007] In one embodiment, the local interaction agent determines the associated display position of the local input method candidate interface based on the remote cursor information, and receives the submission text generated by the local input method, including: The local interaction agent receives remote cursor information synchronized from the remote interaction agent, determines the associated display position based on the remote cursor information, displays the local input method candidate interface on the local desktop based on the associated display position, and receives the submitted text generated by the local input method through the local input method candidate interface.

[0008] In one embodiment, the remote interaction agent performs matching verification based on the operation type identifier, updated unified attribution status, and identification identifier set, including: Obtain the local client identifier, the second remote application session identifier, the target remote window identifier, and the second input context state identifier from the identifier set; When the operation type is identified as a local input method submission operation, the current control client identifier is compared with the local client identifier, the first remote application session identifier is compared with the second remote application session identifier, the remote active window identifier is compared with the target remote window identifier, and the first input context state identifier is compared with the second input context state identifier. If all comparisons are consistent, the matching verification passes; otherwise, the matching verification fails, and the submission process ends. When the operation type is identified as a local clipboard file input operation or a local file drag-and-drop operation, the current control client identifier is compared with the local client identifier, the first remote application session identifier is compared with the second remote application session identifier, the remote active window identifier is compared with the target remote window identifier, and the path attribution of the local object reference is verified. If all comparisons are consistent and the path attribution verification passes, the matching verification passes; otherwise, the matching verification fails, and the delivery process ends.

[0009] In one embodiment, a remote delivery object is generated by performing remote delivery mapping based on the operation type identifier, local object reference, and updated unified attribution status, including: When the operation type is identified as a local input method submission operation, the remote interaction agent generates a text submission event based on the local object reference and the remote focus input state, and uses the text submission event as the remote delivery object. When the operation type is identified as a local clipboard file input operation or a local file drag-and-drop operation, a file delivery event or drag-and-drop event is generated through a path conversion algorithm based on the current control client identifier, the client file system reverse projection entry, the remote active window identifier, and the operation type identifier. The file delivery event or drag-and-drop event is then used as the remote delivery object.

[0010] In one embodiment, generating a file delivery event or drag-and-drop event using a path conversion algorithm includes: The remote interaction agent performs path ownership verification on local object references, including selecting the corresponding client file system reverse projection entry based on the current control client identifier, obtaining the Linux server mapping root path corresponding to the client file system reverse projection entry, and converting the local file path in the local object reference into a path accessible to the Linux server through the Linux server mapping root path. When the accessible path of the Linux server is within the file system range corresponding to the mapped root path of the Linux server and is accessible, the path ownership verification is deemed to be successful. After the path ownership verification is successful, if the operation type is identified as a local clipboard file input operation, a file delivery event is generated based on the remote active window identifier and the local clipboard file input operation; if the operation type is identified as a local file drag and drop operation, a drag and drop event is generated based on the remote active window identifier and the local file drag and drop operation.

[0011] Secondly, the present invention provides a remote projection input linkage device for implementing the aforementioned remote projection input linkage method, the device comprising: The module for obtaining the unified attribution status is updated. It is used to generate an initial unified attribution status through a remote interaction proxy during a remote graphical session between a user and a remote application. The initial unified attribution status is updated through a status update algorithm to obtain an updated unified attribution status. The updated unified attribution status includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context status identifier, the remote focus input status, and the client file system reverse projection entry. The identifier transmission module is used to obtain the user's operation type identifier, which includes local input method submission operation, local clipboard file input operation, and local file drag and drop operation; the local interaction agent generates a local object reference based on the operation type identifier, obtains the identification identifier set of the local interaction agent, and sends the operation type identifier, local object reference, and identification identifier set to the remote interaction agent; The remote delivery object delivery module is used by the remote interaction agent to perform matching and verification based on the operation type identifier, the updated unified attribution status, and the identification identifier set. When the matching and verification pass, the remote interaction agent performs remote delivery mapping based on the operation type identifier, the local object reference, and the updated unified attribution status, generates a remote delivery object, and delivers the remote delivery object to the remote application corresponding to the remote activity window identifier.

[0012] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the remote projection input linkage method.

[0013] Fourthly, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the remote projection input linkage method.

[0014] The present invention has the following beneficial effects: 1. By establishing a unified attribution state, the local object references corresponding to three different operation types—local input method submission, local clipboard file input, and local file drag-and-drop—are incorporated into the same attribution state for matching, verification, and remote delivery mapping. This fundamentally solves the target mismatch problem caused by independent processing across multiple channels. The remote interaction agent performs matching and verification based on the operation type identifier, updated unified attribution state, and identification identifier set. This ensures that text input, clipboard file input, and file drag-and-drop input share the same attribution determination logic, preventing input or files from being delivered to the wrong remote application in multi-client scenarios. The local file path, as a local object reference, directly participates in matching, verification, and remote delivery mapping. It does not need to be completely copied to the remote desktop environment during the paste or drag-and-drop stage. Instead, it generates a remote delivery object through the client file system reverse projection entry in the unified attribution state, enabling remote applications to access files on demand and improving input consistency between remote graphical applications and local applications.

[0015] 2. Through a state update algorithm, when a window focus switching event or a client control switching event occurs in a remote graphics session, the remote interaction agent captures the event window identifier and the event client identifier, and updates the corresponding fields in the initial unified attribution state. This ensures that the unified attribution state always reflects the latest window focus attribution and client control attribution, providing a real-time and accurate benchmark for subsequent matching and verification. For local input method submission operations, the submitted text generated by the local input method is received as a local object reference through the candidate interface. For local clipboard file input operations and local file drag-and-drop operations, the local file path stored in the local clipboard and the local file path of the remote projection window are read as local object references, respectively. This ensures that the local object references generated by the three different operations all carry a clear type identifier, thereby providing an accurate data source for the remote interaction agent to perform remote delivery based on the operation type identifier.

[0016] 3. By differentiating operation type identifiers and performing differentiated matching checks, we ensure that text input is accurately located in the correct input context. We also provide additional path attribution checks for file inputs to further prevent incorrect file mapping in multi-client scenarios. After successful matching, we perform differentiated remote delivery mapping based on the operation type identifier. For local input method submission operations, we generate text submission events based on local object references and remote focus input states. For local clipboard file input operations and local file drag-and-drop operations, we perform path attribution checks and generate file delivery or drag-and-drop events based on the remote active window identifier and operation type identifier. This ensures that text submission events, file delivery events, and drag-and-drop events are all generated based on the same unified attribution state, guaranteeing strict consistency between the remote delivery object and the current control client, remote active window, and input context state. This avoids inconsistencies caused by multi-channel independent mapping and provides a consistent input experience for remote graphical applications, approaching that of local applications. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of a method according to an embodiment of the present invention; Figure 2 This is a structural diagram of the device according to an embodiment of the present invention. Detailed Implementation

[0019] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0020] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.

[0021] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0022] To enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0023] Reference Figure 1 The present invention provides a remote projection input linkage method, including steps S100-S300.

[0024] During a remote graphical session between a user and a remote application, S100 generates an initial unified attribution state through a remote interaction proxy; it then updates the initial unified attribution state using a state update algorithm to obtain an updated unified attribution state; the updated unified attribution state includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context state identifier, the remote focus input state, and the client file system reverse projection entry. In some embodiments, the Linux server-side graphical session serves as the runtime environment for remote graphical applications, and can be provided by X11 graphical server, Wayland Compositor, or other Linux graphical server programs. The remote graphical application runs within the Linux server-side graphical session and can be WeChat, Chrome, WPS, or other Linux graphical applications. The remote graphical application can be projected onto the local terminal as a single application window, or it can run within a fully projected remote desktop session. The entire desktop session can be transmitted via VNC, RDP, or other remote desktop technologies, while a single application window can be transmitted via catlink or other remote graphical transmission components. In both scenarios, this solution maintains the association between the remote active window, focus input state, and client identifier through a remote interaction proxy, thus not relying on any specific remote screen transmission method.

[0025] The remote interaction agent runs within the Linux server's graphical session, responsible for input context management, window ownership management, and clipboard and file delivery handling. The remote interaction agent starts after the remote Linux graphical session begins but before the remote graphical application starts. The remote graphical session configures the input module, enabling graphical applications using different frameworks such as GTK, Qt, Electron, Chromium, WPS, and Wine to connect to the remote input method agent service. The remote interaction agent monitors focus events, window activation events, and input context events in the remote graphical system to perceive real-time changes in the remote graphical session's state.

[0026] The local interaction agent runs on the local terminal and is responsible for invoking the local input method, reading the local clipboard, obtaining local file paths, and sending input or file requests. The local interaction agent can run on local terminals of different operating systems such as Windows, macOS, or Linux. Communication between the local interaction agent and the remote interaction agent is via a network.

[0027] The remote projection channel is used to transmit remote window images, basic mouse and keyboard events, and control messages. It can be implemented by catlink, VNC, RDP, X11 forwarding, Wayland remote projection, or other remote graphics transmission components.

[0028] The client file system reverse projection channel is used to map client file resources to paths accessible to the Linux server based on the client identifier. This channel reverse projects local client-accessible file systems, cloud drive directories, external disks, or other file resources to paths accessible to the Linux server, isolating them by client identifier. File resources from different local clients are isolated using the client identifier.

[0029] The remote interaction agent completes initialization after the remote graphical session starts but before the remote graphical application starts. The remote interaction agent establishes a first remote application session identifier for the current remote application or remote desktop. This first remote application session identifier uniquely identifies the current remote graphical session. When a local client connects to the remote graphical session for the first time, the remote interaction agent assigns a local client identifier to that local client and associates this local client identifier with the first remote application session identifier, serving as the foundational entry for the initial unified attribution state.

[0030] The remote interaction agent listens for focus events and window activation events in the remote graphics system. When a focus event or window activation event is triggered, the remote interaction agent obtains the window identifier of the currently focused remote active window as the remote active window identifier, along with the first input context state identifier associated with that window, and writes the remote active window identifier and the first input context state identifier into the initial unified ownership state. The remote active window identifier is used to identify the remote window that is currently active or has received input focus. The first input context state identifier is used to identify the current valid version of the remote input context.

[0031] The remote interaction agent listens for input context events in the remote graphics system, extracts the remote focus input state from the input context events, and writes the remote focus input state into the initial unified ownership state. The remote focus input state includes at least the cursor position information within the remote active window, the rectangular information of the input area, and the combined state information of the input context.

[0032] The remote interaction agent records the corresponding client file system reverse projection entry based on the local client identifier, which serves as a component field of the initial unified ownership state. The client file system reverse projection entry is a directory path in the Linux server file system, which corresponds to the mapping location of the local client's file resources on the Linux server. Different client identifiers correspond to different client file system reverse projection entries.

[0033] In some embodiments, updating the initial unified ownership state using a state update algorithm to obtain an updated unified ownership state includes: When a window focus switching event or a client control switching event occurs in a remote graphics session, the remote interaction agent captures the event window identifier and the event client identifier. The corresponding fields in the initial unified attribution state are updated by using the event window identifier and the event client identifier to obtain the updated unified attribution state.

[0034] In some embodiments, a window focus switching event refers to an event in which the input focus in the remote graphics system switches from one window to another. In this case, the remote interaction agent updates the remote active window identifier to the event window identifier. A client control switching event refers to an event in which control of the remote graphics session switches from one local client to another. In this case, the remote interaction agent updates the current controlling client identifier to the event client identifier.

[0035] The updated unified attribution status includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context status identifier, the remote focus input status, and the client file system reverse projection entry.

[0036] The update of unified attribution status can be represented as: in, To update the unified attribution status, The unified ownership status before the update. The event type that triggers the update and the window identifier or client identifier it carries. This indicates that the field corresponding to the event type in the unified attribution status will be replaced with the new value carried by the event. For example, when When it is a window focus switching event, Replace the remote active window identifier in the unified ownership status with the new window identifier carried by the event; when When the client controls the change event occurs, Replace the current controlling client identifier in the unified ownership state with the new client identifier carried by the event, and update the client file system back projection entry to the entry corresponding to the client identifier.

[0037] S200 obtains the user's operation type identifier, which includes local input method submission operation, local clipboard file input operation, and local file drag and drop operation; the local interaction agent generates a local object reference based on the operation type identifier, obtains the identification identifier set of the local interaction agent, and sends the operation type identifier, local object reference, and identification identifier set to the remote interaction agent; In some embodiments, the local interaction agent generates a local object reference based on the operation type identifier, including: When the operation type is identified as a local input method submission operation, the local interaction agent determines the associated display position of the local input method candidate interface based on the remote cursor information, receives the submission text generated by the local input method, and uses the submission text as a local object reference. When the operation type is identified as a local clipboard file input operation, the local file path stored in the local clipboard is used as a local object reference; When the operation type is identified as a local file drag-and-drop operation, the local file path that the user drags into the remote projection window is used as a local object reference.

[0038] In some embodiments, the local input method submission operation refers to the operation in which a user completes text input and confirms submission using a local input method on a local terminal. The submitted text generated by the local input method submission operation is the candidate text finally selected by the user.

[0039] Local clipboard file input refers to the act of a user copying one or more files in a local file manager or local application and then performing a paste operation in a remote projection window. The local interactive agent reads the list of file URIs or file paths stored in the local clipboard.

[0040] Local file drag-and-drop operation refers to the behavior of a user selecting one or more files in the local file manager and dragging them into the remote projection window. The local interaction agent captures the path of one or more local files that the user drags into the remote projection window.

[0041] In some embodiments, the local interaction agent determines the associated display position of the local input method candidate interface based on the remote cursor information, and receives the submission text generated by the local input method, including: The local interaction agent receives remote cursor information synchronized from the remote interaction agent, determines the associated display position based on the remote cursor information, displays the local input method candidate interface on the local desktop based on the associated display position, and receives the submitted text generated by the local input method through the local input method candidate interface.

[0042] In some embodiments, the remote cursor information includes at least the starting x-coordinate of the cursor within the remote active window. Initial ordinate ,width and height The remote cursor information reflects the precise position and size of the remote input cursor within the remote window, and is a key basis for determining the display position of the local input method candidate interface. Remote cursor information may also include cursor shape identifiers, cursor blinking status, and the position information of the remote projection window on the local terminal desktop.

[0043] The local interaction agent can adjust the display style of the local input method candidate interface based on the cursor shape and blinking status. Location information includes at least the starting x-coordinate of the remote projection window on the local desktop. Initial ordinate Display width and display height Calculate the scaling ratio based on the location information:

[0044] in, For scaling ratio, This sets the display width of the remotely projected window on the local desktop. The original width of the remote window; scaling factor. It reflects the scaling factor of the remote window image from its original remote size to its local display size.

[0045] The local interaction agent calculates the associated display position based on the cursor rectangle information, window position information, and scaling ratio in the remote cursor information. The associated display position is the target display position of the local input method candidate interface on the local desktop, calculated according to the following mapping relationship: in, The x-coordinate of the top left corner of the local candidate interface. The vertical coordinate of the top left corner of the local candidate interface. This represents the starting x-coordinate of the remotely projected window on the local desktop. This represents the starting vertical coordinate of the remotely projected window on the local desktop. This is the starting x-coordinate of the cursor within the remote active window. This represents the starting vertical coordinate of the cursor within the remote active window. The cursor width. The cursor height. This is the scaling ratio.

[0046] The above mapping relationship means that the position of the cursor rectangle in the coordinate system of the remote window is changed by scaling. Mapped to the local screen coordinate system. The calculation method is as follows: first, set the horizontal coordinate of the cursor in the far window. Multiply by scaling This gives you the horizontal offset of the cursor in the local display, plus the starting horizontal coordinate of the remote projection window on the local desktop. This gives the horizontal coordinate of the candidate interface on the local screen. The calculation method is as follows: first, set the vertical coordinate of the cursor in the remote window. Multiply by scaling plus cursor height Multiply by scaling (This makes the candidate interface appear below the cursor), plus the starting vertical coordinate of the remote projection window on the local desktop. This gives the vertical coordinate of the candidate interface on the local screen.

[0047] The S300 remote interaction agent performs matching and verification based on the operation type identifier, the updated unified attribution status, and the identification identifier set. When the matching and verification pass, the remote interaction agent performs remote delivery mapping based on the operation type identifier, the local object reference, and the updated unified attribution status, generates a remote delivery object, and delivers the remote delivery object to the remote application corresponding to the remote activity window identifier.

[0048] In some embodiments, the remote interaction agent performs matching verification based on the operation type identifier, updated unified attribution status, and identification identifier set, including: Obtain the local client identifier, the second remote application session identifier, the target remote window identifier, and the second input context state identifier from the identifier set; When the operation type is identified as a local input method submission operation, the current control client identifier is compared with the local client identifier, the first remote application session identifier is compared with the second remote application session identifier, the remote active window identifier is compared with the target remote window identifier, and the first input context state identifier is compared with the second input context state identifier. If all comparisons are consistent, the matching verification passes; otherwise, the matching verification fails, and the submission process ends. When the operation type is identified as a local clipboard file input operation or a local file drag-and-drop operation, the current control client identifier is compared with the local client identifier, the first remote application session identifier is compared with the second remote application session identifier, the remote active window identifier is compared with the target remote window identifier, and the path attribution of the local object reference is verified. If all comparisons are consistent and the path attribution verification passes, the matching verification passes; otherwise, the matching verification fails, and the delivery process ends.

[0049] In some embodiments, the local client identifier is used to uniquely identify the current local client and is assigned by the remote interaction agent when the client first connects; the second remote application session identifier is used to identify the remote application session to which the local interaction agent is currently connected; the target remote window identifier is used to identify the remote target window to which the local interaction agent expects to submit input or files; and the second input context state identifier is used to identify the input context state version corresponding to the local interaction agent.

[0050] For local input method submission operations, the matching verification can be represented as: in, Indicates whether the match validation passed. For local client identification, This is the identifier of the current control client. This serves as the identifier for the second remote application session. This serves as the identifier for the first remote application session. For the target remote window identifier, For remote active window identification, This is the second input context state identifier. This is the first input context state identifier.

[0051] For local clipboard file input and local file drag-and-drop operations, the matching validation can be represented as: in, Indicates the local file path in a reference to a local object. Perform path attribution verification. The value is true if the path attribution verification passes, and false otherwise.

[0052] In some embodiments, remote delivery mapping is performed based on the operation type identifier, local object reference, and updated unified attribution status to generate a remote delivery object, including: When the operation type is identified as a local input method submission operation, the remote interaction agent generates a text submission event based on the local object reference and the remote focus input state, and uses the text submission event as the remote delivery object. When the operation type is identified as a local clipboard file input operation or a local file drag-and-drop operation, a file delivery event or drag-and-drop event is generated through a path conversion algorithm based on the current control client identifier, the client file system reverse projection entry, the remote active window identifier, and the operation type identifier. The file delivery event or drag-and-drop event is then used as the remote delivery object.

[0053] In some embodiments, the text submission event includes the submitted text content and submission location information. The remote interaction agent obtains the remote focus input state from the updated unified home state. The remote focus input state includes at least the remote input context identifier where the current focus is located and the cursor position information. Based on the remote focus input state, the remote interaction agent determines the target input context and cursor position for the text submission and injects the submitted text into the corresponding remote input context by calling the input context interface of the remote graphics system. The remote graphics application receives the submitted text through the remote input context, just as it would receive text entered using a local input method.

[0054] Because the submitted text is injected via the standard input context mechanism of the remote graphics system, it has good compatibility with graphics applications of different application frameworks such as GTK, Qt, Electron, Chromium, WPS, and Wine. When the remote focus input state changes, the remote interaction agent updates the first input context state identifier in the unified home state.

[0055] In some embodiments, generating file delivery events or drag-and-drop events using a path conversion algorithm includes: The remote interaction agent performs path ownership verification on local object references, including selecting the corresponding client file system reverse projection entry based on the current control client identifier, obtaining the Linux server mapping root path corresponding to the client file system reverse projection entry, and converting the local file path in the local object reference into a path accessible to the Linux server through the Linux server mapping root path. When the accessible path of the Linux server is within the file system range corresponding to the mapped root path of the Linux server and is accessible, the path ownership verification is deemed to be successful. After the path ownership verification is successful, if the operation type is identified as a local clipboard file input operation, a file delivery event is generated based on the remote active window identifier and the local clipboard file input operation; if the operation type is identified as a local file drag and drop operation, a drag and drop event is generated based on the remote active window identifier and the local file drag and drop operation.

[0056] In some embodiments, when different local clients connect to the same remote session, their respective file systems are isolated by client identifier, and path attribution verification ensures that the local file path does indeed belong to the reverse projection range of the file system corresponding to the current client.

[0057] Linux server mapping root path This is the root directory where local client file resources are mapped on the Linux server. Different clients have different identifiers. The remote interaction proxy maps the root path through the Linux server. Local file path in local object references Convert to a path accessible by the Linux server :

[0058] in, This is the path accessible to the Linux server. For Linux file system path separators, Map the root path for the Linux server. A function to extract relative paths after removing the root directory or drive identifier of the local file system. This refers to the local file path in a local object reference. For example, when the local client is running on a Windows system, the local file path... is "C:\Users\user\Documents\file.txt", The function converts it to "Users / user / Documents / file.txt", and then... Concatenate to obtain the accessible path of the Linux server .

[0059] When the Linux server can access the path Located in the Linux server's mapped root path If the path ownership verification passes when the path is accessible within the corresponding file system range, the remote interaction proxy determines that the path ownership verification is successful. This verification step includes two levels of checks: First, checking... Is it located in Within the corresponding file system scope, prevent path traversal attacks; second, check... Does the corresponding file or directory actually exist on the Linux server and does the remote application have permission to access it?

[0060] After the path attribution verification passes, the remote interaction agent executes differentiated remote delivery mapping based on the operation type identifier: If the operation type is identified as a local clipboard file input operation, the remote interaction agent determines the target remote window based on the remote active window identifier. Through the input context of the remote graphics system or the graphics API interface, it converts the path accessible to the Linux server into a file input format that the remote application can accept, generates a file delivery event, and sends it to the target remote window to simulate the operation of pasting a file from the local clipboard.

[0061] If the operation type is identified as a local file drag-and-drop operation, the remote interaction agent determines the target remote window based on the remote active window identifier. Through the drag-and-drop API interface of the remote graphics system, it encapsulates the Linux server-accessible path into a drag-and-drop data packet, generates a drag-and-drop event, and injects it into the target remote window to simulate the operation of dragging and dropping a local file into the remote application window.

[0062] After receiving a file delivery or drag-and-drop event, the remote application can read the local file content as needed through the accessible path on the Linux server, without having to completely copy the file to the remote desktop environment during the paste or drag-and-drop stage, thus saving network bandwidth and remote storage resources.

[0063] Reference Figure 2 This invention provides a remote projection input linkage device 20 for implementing a remote projection input linkage method. The device includes: The unified attribution state acquisition module 21 is used to generate an initial unified attribution state through a remote interaction proxy during a remote graphical session between a user and a remote application; and to update the initial unified attribution state through a state update algorithm to obtain an updated unified attribution state. The updated unified attribution state includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context state identifier, the remote focus input state, and the client file system reverse projection entry. The identifier transmission module 22 is used to obtain the user's operation type identifier, which includes local input method submission operation, local clipboard file input operation, and local file drag and drop operation; the local interaction agent generates a local object reference based on the operation type identifier, obtains the identification identifier set of the local interaction agent, and sends the operation type identifier, local object reference, and identification identifier set to the remote interaction agent; The remote delivery object delivery module 23 is used by the remote interaction agent to perform matching and verification based on the operation type identifier, the updated unified attribution status, and the identification identifier set. When the matching and verification pass, the remote interaction agent performs remote delivery mapping based on the operation type identifier, the local object reference, and the updated unified attribution status, generates a remote delivery object, and delivers the remote delivery object to the remote application corresponding to the remote activity window identifier.

[0064] This application provides an electronic device, including a processor and a memory; the memory stores a computer program, wherein the computer program, when executed by the processor, implements the remote projection input linkage method of any of the above schemes.

[0065] Specifically, the processor may include, for example, a general-purpose microprocessor, an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor may also include onboard memory for caching purposes. The processor may be a single processing unit or multiple processing units for performing different actions of the method flow according to embodiments of this application.

[0066] Memory can be any medium capable of containing, storing, transmitting, propagating, or transmitting instructions. For example, memory can include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, instruments, or propagation media. Specific examples of memory include: magnetic storage devices such as magnetic tape or hard disk drives (HDDs); optical storage devices such as optical discs (CD-ROMs); and also random access memory (RAM) or flash memory; and / or wired / wireless communication links.

[0067] This application also provides a computer-readable medium storing a computer program thereon, which, when executed by a processor, implements the remote projection input linkage method of any of the above-described schemes. This computer-readable medium may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The aforementioned computer-readable medium carries one or more programs, which, when executed, implement the method as described in the embodiments of this application.

[0068] According to embodiments of this application, a computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wired, optical fiber, radio frequency signals, etc., or any suitable combination thereof.

[0069] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this application. In particular, the features described in the various embodiments and / or claims of this application can be combined and / or combined in various ways without departing from the spirit and teachings of this application. All such combinations and / or combinations fall within the scope of this application. Therefore, the scope of this application should not be limited to the above embodiments, but should be defined not only by the appended claims, but also by their equivalents. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A remote projection input linkage method, characterized in that, include: During a remote graphical session between a user and a remote application, an initial unified ownership state is generated through a remote interaction proxy. The initial unified ownership state is updated using a state update algorithm to obtain the updated unified ownership state. The updated unified ownership state includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context state identifier, the remote focus input state, and the client file system reverse projection entry. Obtain the user's operation type identifier, which includes local input method submission operation, local clipboard file input operation, and local file drag and drop operation; the local interaction agent generates a local object reference based on the operation type identifier, obtains the identification identifier set of the local interaction agent, and sends the operation type identifier, local object reference, and identification identifier set to the remote interaction agent; The remote interaction agent performs matching and verification based on the operation type identifier, the updated unified attribution status, and the identification identifier set. When the matching and verification pass, the remote interaction agent performs remote delivery mapping based on the operation type identifier, the local object reference, and the updated unified attribution status, generates a remote delivery object, and delivers the remote delivery object to the remote application corresponding to the remote activity window identifier.

2. The remote projection input linkage method according to claim 1, characterized in that, The initial unified ownership state is updated using a state update algorithm to obtain the updated unified ownership state, including: When a window focus switching event or a client control switching event occurs in a remote graphics session, the remote interaction agent captures the event window identifier and the event client identifier. The corresponding fields in the initial unified attribution state are updated by using the event window identifier and the event client identifier to obtain the updated unified attribution state.

3. The remote projection input linkage method according to claim 1, characterized in that, The local interaction proxy generates local object references based on the operation type identifier, including: When the operation type is identified as a local input method submission operation, the local interaction agent determines the associated display position of the local input method candidate interface based on the remote cursor information, receives the submission text generated by the local input method, and uses the submission text as a local object reference. When the operation type is identified as a local clipboard file input operation, the local file path stored in the local clipboard is used as a local object reference; When the operation type is identified as a local file drag-and-drop operation, the local file path that the user drags into the remote projection window is used as a local object reference.

4. The remote projection input linkage method according to claim 3, characterized in that, The local interaction agent determines the associated display position of the local input method candidate interface based on the remote cursor information, and receives the submission text generated by the local input method, including: The local interaction agent receives remote cursor information synchronized from the remote interaction agent, determines the associated display position based on the remote cursor information, displays the local input method candidate interface on the local desktop based on the associated display position, and receives the submitted text generated by the local input method through the local input method candidate interface.

5. The remote projection input linkage method according to claim 1, characterized in that, The remote interaction agent performs matching and verification based on the operation type identifier, updated unified attribution status, and identification identifier set, including: Obtain the local client identifier, the second remote application session identifier, the target remote window identifier, and the second input context state identifier from the identifier set; When the operation type is identified as a local input method submission operation, the current control client identifier is compared with the local client identifier, the first remote application session identifier is compared with the second remote application session identifier, the remote active window identifier is compared with the target remote window identifier, and the first input context state identifier is compared with the second input context state identifier. If all comparisons are consistent, the matching verification passes; otherwise, the matching verification fails, and the submission process ends. When the operation type is identified as a local clipboard file input operation or a local file drag-and-drop operation, the current control client identifier is compared with the local client identifier, the first remote application session identifier is compared with the second remote application session identifier, the remote active window identifier is compared with the target remote window identifier, and the path attribution of the local object reference is verified. If all comparisons are consistent and the path attribution verification passes, the matching verification passes; otherwise, the matching verification fails, and the delivery process ends.

6. The remote projection input linkage method according to claim 1, characterized in that, Based on the operation type identifier, local object reference, and updated unified attribution status, a remote delivery mapping is performed to generate a remote delivery object, including: When the operation type is identified as a local input method submission operation, the remote interaction agent generates a text submission event based on the local object reference and the remote focus input state, and uses the text submission event as the remote delivery object. When the operation type is identified as a local clipboard file input operation or a local file drag-and-drop operation, a file delivery event or drag-and-drop event is generated through a path conversion algorithm based on the current control client identifier, the client file system reverse projection entry, the remote active window identifier, and the operation type identifier. The file delivery event or drag-and-drop event is then used as the remote delivery object.

7. The remote projection input linkage method according to claim 6, characterized in that, File delivery or drag-and-drop events are generated using path conversion algorithms, including: The remote interaction agent performs path ownership verification on local object references, including selecting the corresponding client file system reverse projection entry based on the current control client identifier, obtaining the Linux server mapping root path corresponding to the client file system reverse projection entry, and converting the local file path in the local object reference into a path accessible to the Linux server through the Linux server mapping root path. When the accessible path of the Linux server is within the file system range corresponding to the mapped root path of the Linux server and is accessible, the path ownership verification is deemed to be successful. After the path ownership verification is successful, if the operation type is identified as a local clipboard file input operation, a file delivery event is generated based on the remote active window identifier and the local clipboard file input operation; if the operation type is identified as a local file drag and drop operation, a drag and drop event is generated based on the remote active window identifier and the local file drag and drop operation.

8. A remote projection input linkage device, used to implement the remote projection input linkage method as described in any one of claims 1 to 7, characterized in that, The device includes: The module for obtaining the unified attribution status is updated. It is used to generate an initial unified attribution status through a remote interaction proxy during a remote graphical session between a user and a remote application. The initial unified attribution status is updated using a status update algorithm to obtain an updated unified attribution status. The updated unified attribution status includes the current control client identifier, the first remote application session identifier, the remote active window identifier, the first input context status identifier, the remote focus input status, and the client file system reverse projection entry. The identifier transmission module is used to obtain the user's operation type identifier, which includes local input method submission operation, local clipboard file input operation, and local file drag and drop operation; the local interaction agent generates a local object reference based on the operation type identifier, obtains the identification identifier set of the local interaction agent, and sends the operation type identifier, local object reference, and identification identifier set to the remote interaction agent; The remote delivery object delivery module is used by the remote interaction agent to perform matching and verification based on the operation type identifier, the updated unified attribution status, and the identification identifier set. When the matching and verification pass, the remote interaction agent performs remote delivery mapping based on the operation type identifier, the local object reference, and the updated unified attribution status, generates a remote delivery object, and delivers the remote delivery object to the remote application corresponding to the remote activity window identifier.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the remote projection input linkage method as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the remote projection input linkage method as described in any one of claims 1 to 7.