Desktop control method and device, equipment and storage medium
By generating and synchronizing virtual layout information, the problem that virtual desktops cannot be synchronized on different terminal devices is solved, and cross-terminal devices synchronization of virtual desktops is realized, improving user experience.
Patent Information
- Application Number
- CN202311427136.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2025-05-02
AI Technical Summary
When a user uses a virtual desktop, after editing or adding custom controls, the layout of the virtual desktop on the current terminal device will change, but these changes will not be synchronized to other terminal devices, causing the virtual desktop running on different terminal devices to be unable to synchronize, affecting the user experience.
By generating virtual layout information, including the target editing policy and application layout information of the target control, and uploading it to the server, the server then sends this information to other terminal devices to adjust the layout of the virtual desktop, thereby achieving virtual desktop synchronization on different terminal devices.
It realizes synchronization of virtual desktop layouts on different terminal devices, improving the user experience when using virtual desktops.
Smart Images

Figure CN119917190A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of virtual desktops, and in particular to a desktop control method, device, equipment, and storage medium. Background Art
[0002] Virtual desktop is to virtualize the computer desktop to achieve security and flexibility in desktop use. Users can log in to their personal accounts through terminal devices and access their personal virtual desktops at different locations and times.
[0003] At present, in order to meet the personalized needs of users when using virtual desktops. In the related technology, users can log in to their personal accounts on a terminal device to access their personal virtual desktops, and can add custom controls to their personal virtual desktops, or add edited custom controls. Through custom controls, users can perform custom operations when using virtual desktops.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] When using a virtual desktop, a user may use different terminal devices to log in to a personal account to access a personal virtual desktop. In this way, after a user edits or adds custom controls in a virtual desktop running on a terminal device, the layout of the virtual desktop running on the current terminal device will change. However, the edited virtual desktop is only displayed on the current terminal device. When the user uses other terminal devices to access the personal virtual desktop, the virtual desktop running on other terminal devices will not display the edited virtual desktop. When the same user uses different terminal devices to access the personal virtual desktop, the virtual desktops running on different terminal devices cannot be synchronized. As a result, the user experience when using the virtual desktop is affected. Summary of the invention
[0006] The embodiments of the present disclosure provide a desktop control method, apparatus, device, and storage medium, which can synchronously set virtual desktops running on different terminal devices.
[0007] In a first aspect, an embodiment of the present disclosure provides a desktop control method, which is applied to a first terminal device, where the first terminal device runs a first virtual desktop; the method includes:
[0008] When the layout of the first virtual desktop changes, generating virtual layout information of the first virtual desktop; wherein the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0009] The virtual layout information is uploaded to the server so that the server stores the virtual layout information and sends the virtual layout information to the second terminal device; the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
[0010] In a second aspect, the present disclosure provides a desktop control method, which is applied to a server; the method includes:
[0011] Receiving virtual layout information uploaded by a first terminal device; wherein the virtual layout information is generated by the first terminal device when the layout of a running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0012] Obtaining the operating status of the second terminal device;
[0013] When the second terminal device is in an online state, the virtual layout information is sent to the second terminal device, so that the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
[0014] In a third aspect, the present disclosure provides a desktop control method, which is applied to a second terminal device, where the second terminal device runs a second virtual desktop; the method includes:
[0015] Receive virtual layout information sent by the server; wherein the virtual layout information is generated by the first terminal device when the layout of the running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0016] The layout of the second virtual desktop is adjusted according to the virtual layout information.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a desktop control device, which is integrated in a first terminal device, and the first terminal device runs a first virtual desktop; the device includes:
[0018] A layout generation module, configured to generate virtual layout information of the first virtual desktop when the layout of the first virtual desktop changes; wherein the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0019] The layout sending module is used to upload the virtual layout information to the server so that the server stores the virtual layout information and sends the virtual layout information to the second terminal device; the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
[0020] In a fifth aspect, an embodiment of the present disclosure provides a desktop control device integrated in a server; the device comprises:
[0021] A layout transceiver module, configured to receive virtual layout information uploaded by a first terminal device; wherein the virtual layout information is generated by the first terminal device when the layout of a running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0022] A status confirmation module, used to obtain the operating status of the second terminal device;
[0023] The layout transceiver module is also used to send virtual layout information to the second terminal device when the second terminal device is online, so that the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
[0024] In a sixth aspect, an embodiment of the present disclosure provides a desktop control device, which is integrated in a second terminal device, and the second terminal device runs a second virtual desktop; the device includes:
[0025] A layout receiving module, configured to receive virtual layout information sent by a server; wherein the virtual layout information is generated by the first terminal device when the layout of the running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0026] The layout adjustment module is used to adjust the layout of the second virtual desktop according to the virtual layout information.
[0027] In the seventh aspect, an embodiment of the present disclosure provides an interactive system, comprising a first terminal device, a server and at least one second terminal device; wherein: the first terminal device is used to implement the method described in the first aspect above, the server is used to implement the method described in the second aspect above, and the second terminal device is used to implement the method described in the third aspect above.
[0028] In an eighth aspect, an embodiment of the present disclosure provides an electronic device, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the desktop control method as described in the first aspect above, or execute the desktop control method as described in the second aspect above, or execute the desktop control method as described in the third aspect above when running the program instructions.
[0029] In the ninth aspect, an embodiment of the present disclosure provides a storage medium storing program instructions, wherein when the program instructions are run, they execute the desktop control method as described in the first aspect above, or execute the desktop control method as described in the second aspect above, or execute the desktop control method as described in the third aspect above.
[0030] The desktop control method, device, equipment, and storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0031] When the first terminal device runs the first virtual desktop, the user edits the target control in the first virtual desktop, which will change the layout of the first virtual desktop. In the case where the layout of the first virtual desktop on the first terminal device changes, the first terminal device can generate virtual layout information of the first virtual desktop, and the first terminal device can upload the virtual layout information of the first virtual desktop to the server, and the server sends the virtual layout information of the first virtual desktop to the second terminal device. Since the virtual layout information includes the target editing strategy and application layout information of the target control in the first virtual desktop, the virtual layout information can represent the editing status of the target control in the first virtual desktop, and can also represent the layout status of each application in the first virtual desktop. In this way, the second terminal device can refer to the editing status of the target control and the layout status of each application in the first virtual desktop running on the first terminal device based on the virtual layout information to adjust the layout of the second virtual desktop running on the second terminal device. Thereby, the virtual desktops running on the first terminal device and the second terminal device are set synchronously to improve the user experience when the user uses the virtual desktop.
[0032] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0034] Figure 1 is a schematic diagram of an interactive system provided by an embodiment of the present disclosure;
[0035] Figure 2 is a flow chart of a desktop control method provided by an embodiment of the present disclosure;
[0036] Figure 3 is a schematic diagram of a first terminal device adjusting a first virtual desktop layout provided by an embodiment of the present disclosure;
[0037] Figure 4is a schematic diagram of a second terminal device adjusting a second virtual desktop layout provided by an embodiment of the present disclosure;
[0038] Figure 5 is a schematic diagram of a desktop control device provided by an embodiment of the present disclosure;
[0039] Figure 6 is a schematic diagram of another desktop control device provided by an embodiment of the present disclosure;
[0040] Figure 7 is a schematic diagram of another desktop control device provided by an embodiment of the present disclosure;
[0041] Figure 8 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0042] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0043] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0044] Unless otherwise stated, the term "plurality" means two or more.
[0045] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0046] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0047] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0048] At present, in order to meet the personalized needs of users when using virtual desktops. In the related technology, users can log in to their personal accounts on a terminal device to access their personal virtual desktops, and can add custom controls to their personal virtual desktops, or add edited custom controls. Through custom controls, users can perform custom operations when using virtual desktops.
[0049] When using a virtual desktop, a user may use different terminal devices to log in to a personal account to access a personal virtual desktop. In this way, after a user edits or adds custom controls in a virtual desktop running on a terminal device, the layout of the virtual desktop running on the current terminal device will change. However, the edited virtual desktop is only displayed on the current terminal device. When the user uses other terminal devices to access the personal virtual desktop, the virtual desktop running on other terminal devices will not display the edited virtual desktop. When the same user uses different terminal devices to access the personal virtual desktop, the virtual desktops running on different terminal devices cannot be synchronized. As a result, the user experience when using the virtual desktop is affected.
[0050] In view of this, the embodiments of the present disclosure provide a desktop control method, apparatus, device, and storage medium, which can synchronously set virtual desktops running on different terminal devices.
[0051] Combination Figure 1 As shown, an embodiment of the present disclosure provides an interactive system applicable to a desktop control method, the system comprising a first terminal device 11, a server 12 and a plurality of second terminal devices 13.
[0052] The first terminal device 11 and the plurality of second terminal devices 13 respectively establish connections with the server 12. Among them:
[0053] In the embodiment of the present disclosure, the first terminal device 11 and the second terminal device 13 can run a virtual desktop, and the first terminal device 11 and the second terminal device 13 can be a mobile phone, a tablet, a computer, etc. Specifically, a virtual desktop application can be preset in the first terminal device 11 and the second terminal device 13, and the user can make the first terminal device 11 run the virtual desktop by running the virtual desktop application on the first terminal device 11, or make the second terminal device 13 run the virtual desktop by running the virtual desktop application on the second terminal device 13.
[0054] When a user needs to edit a virtual desktop running on the first terminal device 11, the first terminal device 11 can receive a desktop editing request from the user, and respond to the desktop editing request from the user, so that the first virtual desktop running on the first terminal device 11 enters an editing state. When the first virtual desktop is in the editing state, the user can edit controls on the first virtual desktop, for example, the user can add or delete controls on the first virtual desktop. After the user edits the first virtual desktop running on the first terminal device 11, the layout of the first virtual desktop running on the first terminal device 11 will change, and the first terminal device 11 can upload the layout changes of the first virtual desktop to the server 12.
[0055] In the disclosed embodiment, the server 12 is used to receive the layout of the first virtual desktop uploaded by the first terminal device 11, and send the layout of the first virtual desktop to the second terminal device 13. The server 12 can be a cloud server or a traditional server, or a cloud server cluster or a traditional server cluster.
[0056] In the disclosed embodiment, the second terminal device 13 can receive the layout of the first virtual desktop sent by the server 12, and adjust the layout of the second virtual desktop running on the second terminal device 13 according to the layout of the first virtual desktop. Thus, the virtual desktops running on the first terminal device 11 and the second terminal device 13 are synchronously set. In this implementation, the first virtual desktop running on the first terminal device 11 and the second virtual desktop running on the second terminal device 13 can be virtual desktops corresponding to the same user.
[0057] Combination Figure 2 As shown, the embodiment of the present disclosure provides a desktop control method, which can apply the interactive system of the above embodiment. The embodiment of the present disclosure is described from the perspective of the interaction between the first terminal device, the server and the second terminal device. The embodiment of the present disclosure includes:
[0058] S21. The first terminal device receives a user's editing instruction for a target control in a first virtual desktop.
[0059] S22. The first terminal device generates a target editing strategy corresponding to the target control according to the editing instruction of the target control.
[0060] S23: The first terminal device edits the target control in the first virtual desktop according to the target editing policy corresponding to the target control, so that the layout of the first virtual desktop changes.
[0061] S24: When the layout of the first virtual desktop changes, the first terminal device generates virtual layout information of the first virtual desktop, wherein the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop.
[0062] S25. The first terminal device uploads the virtual layout information to the server.
[0063] S26. The server obtains the operating status of the second terminal device.
[0064] S27: When the second terminal device is online, the server sends virtual layout information to the second terminal device.
[0065] S28. The second terminal device adjusts the layout of the second virtual desktop according to the virtual layout information.
[0066] Using the desktop control method provided by the embodiment of the present disclosure, when the first terminal device runs the first virtual desktop, the user edits the target control in the first virtual desktop, which will cause the layout of the first virtual desktop to change. In the case where the layout of the first virtual desktop on the first terminal device changes, the first terminal device can generate virtual layout information of the first virtual desktop, and the first terminal device can upload the virtual layout information of the first virtual desktop to the server, and the server sends the virtual layout information of the first virtual desktop to the second terminal device. Since the virtual layout information includes the target editing strategy and application layout information of the target control in the first virtual desktop, the virtual layout information can characterize the editing of the target control in the first virtual desktop, and can also characterize the layout of each application in the first virtual desktop. In this way, the second terminal device can refer to the editing of the target control and the layout of each application in the first virtual desktop running on the first terminal device based on the virtual layout information to adjust the layout of the second virtual desktop running on the second terminal device. Thereby, the virtual desktops running on the first terminal device and the second terminal device are set synchronously to improve the user experience when the user uses the virtual desktop.
[0067] In the above-mentioned step S22 and step S23 of the embodiment of the present disclosure, the editing instruction of the target control may be an instruction to add a target control, an instruction to delete a target control, or an instruction to adjust a target control. Exemplarily, when the editing instruction of the target control is an instruction to add a target control, the first terminal device may generate a target editing strategy for adding the target control instruction according to the instruction to add the target control, and the target editing strategy may characterize the process of adding the target control in the first virtual desktop of the first terminal device. For example, when the added target control is a "courseware" control, the target editing strategy may be a loading program for calling and loading the "courseware" control in the first virtual desktop, so that the first terminal device loads the "courseware" control into the first virtual desktop according to the editing strategy of the "courseware" control, and displays the "courseware" content. In addition, the above-mentioned "courseware" control is a custom control added by the user in the first virtual desktop, and the target control may also be a system control of the first terminal device, such as a "weather" control or a "clock" control, etc., which is not limited in the embodiment of the present disclosure.
[0068] In the embodiment of the present disclosure, it is considered that the operating systems running on different terminal devices may be different, for example, the first terminal device may run the Windows system, and the second terminal device may run the Linux system. The desktop layout of the Windows system in the first terminal device cannot be directly applied to the desktop of the Linux system running on the second terminal device. In this way, in the above step S24 of the embodiment of the present disclosure, the first terminal device can generate virtual layout information based on the layout of the first virtual desktop, and the virtual layout information only includes the target editing policy corresponding to the target control in the first virtual desktop and the application layout information of the first virtual desktop. Among them, the target editing policy corresponding to the target control is used to characterize the user's editing process of the target control in the first virtual desktop, such as the process of the user adding or deleting the target control in the first virtual desktop. The application layout information includes at least the name information of each application in the first virtual desktop and the arrangement relationship of each application. In this way, the virtual layout information generated by the first terminal device is only used to characterize the layout of the first virtual desktop and the editing of the controls in the first virtual desktop, and the virtual layout information does not contain the combination information of the application or control and the operating system in the first virtual desktop. That is, the purpose of the first terminal device generating the virtual layout information is to extract the desktop information of the first virtual desktop from the operating system running on the first terminal device, so that the second terminal device can set the running second virtual desktop according to the desktop information of the first virtual desktop. Thus, when the operating systems of different terminal devices are different, the virtual desktops on different terminal devices can be synchronously set.
[0069] Optionally, in the above step S25, the first terminal device may upload the virtual layout information of the first virtual desktop to the server for storage. Moreover, when a target control is added in the first virtual desktop, the first terminal device may also upload the control data corresponding to the target control to the server for storage. For example, when the added target control is a "courseware" control, the first terminal device may upload the courseware content corresponding to the "courseware" control to the server for storage. In this way, when the second terminal device subsequently edits the target courseware in the second virtual desktop according to the virtual layout information, it may obtain the control data corresponding to the target control from the server. Thus, the synchronous setting of virtual desktops on different terminal devices is facilitated.
[0070] Furthermore, in the above step S26, the server obtains the operating status of the second terminal device, including: determining whether the status information uploaded by the second terminal device is received. If the status information uploaded by the second terminal device is received, it is determined that the second terminal device is in an online state. If the status information uploaded by the second terminal device is not received, it is determined that the second terminal device is in an offline state.
[0071] In the disclosed embodiment, when the first terminal device or the second terminal device establishes a connection with the server, a dedicated channel may be established between the terminal device and the server, and the dedicated channel may be a wireless channel or a wired channel, and the dedicated channel is used to transmit information between the terminal device and the server. Specifically, when the layout of the virtual desktop running on the terminal device changes, the virtual layout information may be uploaded to the server via the dedicated channel. The server may send the virtual layout information to the terminal device via the dedicated channel. When a user accesses the virtual desktop via the terminal device, the terminal device may also upload status information to the server via the dedicated channel.
[0072] When the user needs to access the second virtual desktop through the second terminal device, the user will log in to the second terminal device to switch the second terminal device to an online state, and the second terminal device in an online state will send running status information to the server. In this way, before the server sends the virtual layout device to the second terminal device, it can determine whether the terminal device is online by determining whether the status information uploaded by the second terminal device through the dedicated channel is received, and then it can be determined whether the user has a need to access the second virtual desktop through the second terminal device. In this way, in order to ensure the consistency of the virtual desktops of the first terminal device and the second terminal device, in the above step S27 of the embodiment of the present disclosure, when the second terminal device is online, that is, when the user needs to access the second virtual desktop through the second terminal device, the virtual layout information can be sent to the second terminal device. Thereby, it is convenient for the second terminal device to adjust the layout of the second virtual desktop based on the virtual layout information, thereby improving the user experience of the user accessing the virtual desktop through different terminal devices.
[0073] In addition, in the above steps S26 and S27, when the virtual desktops running on the first terminal device and the second terminal device are synchronously set, the virtual layout information can be stored in the server, and the server determines whether the second terminal device is online, and sends the virtual layout information to the second terminal device when the second terminal device is online. In this way, when the virtual desktops running on the first terminal device and the second terminal device are synchronously set, the first terminal device and the second terminal device do not need to be online at the same time. That is, when the virtual desktops running on the first terminal device and the second terminal device are synchronously set, the first terminal device and the second terminal device are not restricted by the online time. Thus, the synchronous setting of virtual desktops on different terminal devices can be achieved across time.
[0074] Furthermore, in the above step S28, the second terminal device adjusts the layout of the second virtual desktop according to the virtual layout information, including: dividing the second virtual desktop into multiple grid areas according to the size of the second virtual desktop and the application layout information of the first virtual desktop in the virtual layout information; wherein the number of grid areas in the second virtual desktop is the same as the number of applications in the application layout information of the first virtual desktop. According to the application layout information of the first virtual desktop in the virtual layout information and the position of each grid area in the second virtual desktop, each application in the second virtual desktop is deployed to the corresponding grid area respectively. According to the target editing policy corresponding to the target control in the virtual layout information, the target control in the second virtual desktop is edited.
[0075] In this implementation, when the second terminal device adjusts the layout of the second virtual desktop according to the virtual layout information, the adjustment can be made from two aspects. Specifically, as follows:
[0076] On the one hand, since the screen sizes of different terminal devices may be different, the second terminal device in this implementation can divide the second virtual desktop into multiple grid areas according to the size of the second virtual desktop and the application layout information of the first virtual desktop in the virtual layout information, and each grid area corresponds to an application in the first virtual desktop, and the grid area is used to deploy the corresponding application. After the grid area is divided based on the second virtual desktop, the various applications in the second virtual desktop can be redeployed according to the application layout of the first virtual desktop in the virtual layout information. Thereby, the layout of the first virtual desktop of the first terminal device and the second virtual desktop of the second terminal device are consistent.
[0077] On the other hand, since the target control is edited in the first virtual desktop of the first terminal device, if the first virtual desktop of the first terminal device and the second virtual desktop of the second terminal device are to have consistent layouts, the second terminal device needs to make consistent adjustments to the target control in the second virtual desktop. Specifically, the second terminal device can edit the target control in the second virtual desktop according to the target editing policy corresponding to the target control in the virtual layout information. Thus, the layout of the first virtual desktop of the first terminal device and the second virtual desktop of the second terminal device are consistent.
[0078] Further, according to the application layout information of the first virtual desktop in the virtual layout information and the position of each grid area in the second virtual desktop, each application in the second virtual desktop is deployed to the corresponding grid area respectively, including: determining the arrangement relationship of each application in the second virtual desktop according to the application layout information of the first virtual desktop in the virtual layout information. Determining the correspondence between each application and each grid area in the second virtual desktop according to the arrangement relationship of each application in the second virtual desktop and the position of each grid area in the second virtual desktop. According to the correspondence between each application and each grid area in the second virtual desktop, each application in the second virtual desktop is deployed to the corresponding grid area respectively.
[0079] In this implementation, after the second virtual desktop is divided into multiple grid areas, the second terminal device can determine in which grid area each application in the second virtual desktop should be deployed according to the application layout information of the first virtual desktop in the virtual layout information, thereby realizing the deployment of each application in the second virtual desktop.
[0080] Further, the target control in the second virtual desktop is edited according to the target editing policy corresponding to the target control in the virtual layout information, including: if the target control exists in the second virtual desktop, the target control in the second virtual desktop is edited according to the target editing policy corresponding to the target control. Alternatively, if the target control does not exist in the second virtual desktop, a loading program of the target control is executed, and if the target control is loaded into the second virtual desktop, the target control in the second virtual desktop is edited according to the target editing policy corresponding to the target control.
[0081] In this implementation, the target control is edited in the first virtual desktop, and after the virtual layout information is generated, it is necessary to consider whether there is a corresponding target control in the second virtual desktop. If the target control exists in the second virtual desktop, the second terminal device can directly adjust the target control according to the virtual layout information. If the target control does not exist in the second virtual desktop, the second terminal device can call a loader to install or load the target control in the second virtual desktop to implement editing of the target control in the second virtual desktop.
[0082] Further, when the target control is loaded into the second virtual desktop, the target control in the second virtual desktop is edited according to the target editing policy corresponding to the target control, including: obtaining control data corresponding to the target control from the server. Based on the control data corresponding to the target control and the target editing policy, the target control in the second virtual desktop is edited.
[0083] In this implementation, if the target control does not exist in the second virtual desktop and is subsequently loaded, in order to meet the user's editing or use requirements for the target control, the second terminal device needs to obtain the control data corresponding to the target control from the server. For example, if the target control is a "clock" control, the second terminal device needs to obtain the control data of the "clock" control from the server, and the control data may be the current time data, so as to ensure that the "clock" control in the second virtual desktop displays the current time normally.
[0084] Exemplary, combined Figure 3 and Figure 4 As shown, in the embodiment of the present disclosure, the second terminal device may adjust the layout of the second virtual desktop according to the virtual layout information as follows:
[0085] Combination Figure 3 As shown, the original first virtual desktop has application A, application B, and application C arranged in sequence. The user adds a control D to the original first virtual desktop and moves the positions of application A, application B, and application C downward. The first terminal device generates virtual layout information based on the adjusted first virtual desktop, and the virtual layout information includes layout information of application A, application B, and application C, and also includes an editing strategy for adding control D.
[0086] Combination Figure 4 As shown, the second terminal device can divide the second virtual desktop into grid area a, grid area b and grid area c based on the layout information of application A, application B and application C in the virtual layout information. Among them, application A in the first virtual desktop is deployed in grid area a, application B is deployed in grid area b, and application C is deployed in grid area c. In addition, the second terminal device also needs to call and execute the loader of control D to add control D in the second virtual desktop.
[0087] Optionally, after the above step S28, that is, after the second terminal device adjusts the layout of the second virtual desktop according to the virtual layout information, it can also execute a preset rendering program to render the application or control in the second virtual desktop after the layout adjustment. Thereby, the aesthetics of the second virtual desktop is improved, and the user experience of the user when using the virtual desktop is improved.
[0088] Combination Figure 5As shown, the embodiment of the present disclosure provides a desktop control device, which can be integrated into the first terminal device in the above embodiment, and the device includes: a layout generation module 501 and a layout sending module 502. Among them:
[0089] The layout generation module 501 is used to generate virtual layout information of the first virtual desktop when the layout of the first virtual desktop changes; wherein the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0090] The layout sending module 502 is used to upload the virtual layout information to the server so that the server stores the virtual layout information and sends the virtual layout information to the second terminal device; the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
[0091] Optionally, the desktop control device provided by the embodiment of the present disclosure also includes a layout editing module 503, which is used to receive a user's editing instruction for a target control in the first virtual desktop; generate a target editing policy corresponding to the target control according to the editing instruction of the target control; and edit the target control in the first virtual desktop according to the target editing policy corresponding to the target control, so that the layout of the first virtual desktop changes.
[0092] The desktop control device provided in the embodiment of the present disclosure can execute the actions of the first terminal device in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0093] Combination Figure 6 As shown, the embodiment of the present disclosure provides a desktop control device, which can be integrated into the server in the above embodiment, and includes: a layout transceiver module 601 and a status confirmation module 602. Among them:
[0094] The layout transceiver module 601 is used to receive virtual layout information uploaded by the first terminal device; wherein the virtual layout information is generated by the first terminal device when the layout of the running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0095] The status confirmation module 602 is used to obtain the operating status of the second terminal device;
[0096] The layout transceiver module 601 is further configured to send virtual layout information to the second terminal device when the second terminal device is online, so that the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
[0097] Optionally, the status confirmation module 602 is also used to: determine whether status information uploaded by the second terminal device is received; if status information uploaded by the second terminal device is received, determine that the second terminal device is in an online state; if status information uploaded by the second terminal device is not received, determine that the second terminal device is in an offline state.
[0098] The desktop control device provided in the embodiment of the present disclosure can execute the actions of the server in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0099] Combination Figure 7 As shown, the embodiment of the present disclosure provides a desktop control device, which can be integrated into the second terminal device in the above embodiment, and the device includes: a layout receiving module 701 and a layout adjusting module 702. Among them:
[0100] The layout receiving module 701 is used to receive virtual layout information sent by the server; wherein the virtual layout information is generated by the first terminal device when the layout of the running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop;
[0101] The layout adjustment module 702 is used to adjust the layout of the second virtual desktop according to the virtual layout information.
[0102] Optionally, the layout adjustment module 702 is further used to: divide the second virtual desktop into multiple grid areas according to the size of the second virtual desktop and the application layout information of the first virtual desktop in the virtual layout information; wherein the number of grid areas in the second virtual desktop is the same as the number of applications in the application layout information of the first virtual desktop; deploy each application in the second virtual desktop to a corresponding grid area according to the application layout information of the first virtual desktop in the virtual layout information and the position of each grid area in the second virtual desktop; and edit the target control in the second virtual desktop according to the target editing policy corresponding to the target control in the virtual layout information.
[0103] Optionally, the layout adjustment module 702 is further used to: determine the arrangement relationship of each application in the second virtual desktop according to the application layout information of the first virtual desktop in the virtual layout information; determine the correspondence between each application and each grid area in the second virtual desktop according to the arrangement relationship of each application in the second virtual desktop and the position of each grid area in the second virtual desktop; and deploy each application in the second virtual desktop to the corresponding grid area according to the correspondence between each application and each grid area in the second virtual desktop.
[0104] Optionally, the layout adjustment module 702 is further used to: when the target control exists in the second virtual desktop, edit the target control in the second virtual desktop according to the target editing policy corresponding to the target control; or, when the target control does not exist in the second virtual desktop, execute a loading program for the target control, and when the target control is loaded into the second virtual desktop, edit the target control in the second virtual desktop according to the target editing policy corresponding to the target control.
[0105] Optionally, the layout adjustment module 702 is further used to: obtain control data corresponding to the target control from the server; and edit the target control in the second virtual desktop based on the control data corresponding to the target control and the target editing policy.
[0106] The desktop control device provided in the embodiment of the present disclosure can execute the actions of the second terminal device in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0107] Combination Figure 8 As shown, an embodiment of the present disclosure provides an electronic device 800, including a processor 100 and a memory 101. Optionally, the electronic device 800 may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the desktop control method of the above embodiment.
[0108] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0109] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, that is, implementing the desktop control method in the above embodiment.
[0110] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.
[0111] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned desktop control method.
[0112] The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0113] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0114] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0115] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0116] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0117] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A desktop control method, characterized in that: Applied to a first terminal device, the first terminal device runs a first virtual desktop; the method includes: When the layout of the first virtual desktop changes, generating virtual layout information of the first virtual desktop; wherein the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop; The virtual layout information is uploaded to the server so that the server stores the virtual layout information and sends the virtual layout information to the second terminal device; the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
2. The method according to claim 1, characterized in that Before the layout of the first virtual desktop is changed, the method further includes: Receiving a user's editing instruction for a target control in the first virtual desktop; Generate a target editing strategy corresponding to the target control according to the editing instruction of the target control; The target control in the first virtual desktop is edited according to the target editing policy corresponding to the target control, so that the layout of the first virtual desktop is changed.
3. A desktop control method, characterized in that: Applied to a server; the method comprises: Receiving virtual layout information uploaded by a first terminal device; wherein the virtual layout information is generated by the first terminal device when the layout of a running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop; Obtaining the operating status of the second terminal device; When the second terminal device is in an online state, the virtual layout information is sent to the second terminal device, so that the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
4. The method according to claim 3, characterized in that Obtain the operating status of the second terminal device, including: Determining whether status information uploaded by the second terminal device is received; If the status information uploaded by the second terminal device is received, it is determined that the second terminal device is in an online state; If the status information uploaded by the second terminal device is not received, it is determined that the second terminal device is in an offline state.
5. A desktop control method, characterized in that: Applied to a second terminal device, the second terminal device runs a second virtual desktop; the method includes: Receive virtual layout information sent by the server; wherein the virtual layout information is generated by the first terminal device when the layout of the running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop; The layout of the second virtual desktop is adjusted according to the virtual layout information.
6. The method according to claim 5, characterized in that Adjusting the layout of the second virtual desktop according to the virtual layout information includes: Divide the second virtual desktop into a plurality of grid areas according to the size of the second virtual desktop and the application layout information of the first virtual desktop in the virtual layout information; wherein the number of the grid areas in the second virtual desktop is the same as the number of applications in the application layout information of the first virtual desktop; Deploy each application in the second virtual desktop to a corresponding grid area according to the application layout information of the first virtual desktop in the virtual layout information and the position of each grid area in the second virtual desktop; The target control in the second virtual desktop is edited according to the target editing policy corresponding to the target control in the virtual layout information.
7. The method according to claim 6, characterized in that Deploying each application in the second virtual desktop to a corresponding grid area according to the application layout information of the first virtual desktop in the virtual layout information and the position of each grid area in the second virtual desktop respectively includes: Determine the arrangement relationship of each application in the second virtual desktop according to the application layout information of the first virtual desktop in the virtual layout information; Determining a correspondence between each application and each grid area in the second virtual desktop according to an arrangement relationship between each application in the second virtual desktop and a position of each grid area in the second virtual desktop; According to the correspondence between each application and each grid area in the second virtual desktop, each application in the second virtual desktop is deployed to the corresponding grid area respectively.
8. The method according to claim 6, characterized in that Editing the target control in the second virtual desktop according to the target editing policy corresponding to the target control in the virtual layout information includes: In the case where the target control exists in the second virtual desktop, the target control in the second virtual desktop is edited according to the target editing policy corresponding to the target control; or, When the target control does not exist in the second virtual desktop, a loading program of the target control is executed, and when the target control is loaded into the second virtual desktop, the target control in the second virtual desktop is edited according to a target editing policy corresponding to the target control.
9. The method according to claim 8, characterized in that When the target control is loaded into the second virtual desktop, editing the target control in the second virtual desktop according to the target editing policy corresponding to the target control includes: Get the control data corresponding to the target control from the server; Based on the control data corresponding to the target control and the target editing policy, the target control in the second virtual desktop is edited.
10. A desktop control device, characterized in that: Integrated in a first terminal device, the first terminal device runs a first virtual desktop; the device comprises: A layout generation module, configured to generate virtual layout information of the first virtual desktop when the layout of the first virtual desktop changes; wherein the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop; The layout sending module is used to upload the virtual layout information to the server so that the server stores the virtual layout information and sends the virtual layout information to the second terminal device; the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
11. A desktop control device, characterized in that: Integrated in the server; the device comprises: A layout transceiver module, configured to receive virtual layout information uploaded by a first terminal device; wherein the virtual layout information is generated by the first terminal device when the layout of a running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop; A status confirmation module, used to obtain the operating status of the second terminal device; The layout transceiver module is also used to send virtual layout information to the second terminal device when the second terminal device is online, so that the second terminal device adjusts the layout of the second virtual desktop running in the second terminal device according to the virtual layout information.
12. A desktop control device, characterized in that: Integrated in a second terminal device, the second terminal device runs a second virtual desktop; the device comprises: A layout receiving module, configured to receive virtual layout information sent by a server; wherein the virtual layout information is generated by the first terminal device when the layout of the running first virtual desktop changes; the virtual layout information includes a target editing policy corresponding to a target control in the first virtual desktop and application layout information of the first virtual desktop; The layout adjustment module is used to adjust the layout of the second virtual desktop according to the virtual layout information.
13. An interactive system, characterized in that: It comprises a first terminal device, a server and at least one second terminal device; wherein: the first terminal device is used to implement the method as claimed in claim 1 or 2, the server is used to implement the method as claimed in claim 3 or 4, and the second terminal device is used to implement the method as claimed in any one of claims 5 to 9.
14. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the desktop control method according to any one of claims 1 to 9 when running the program instructions.
15. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the desktop control method according to any one of claims 1 to 9 is executed.