Search

CN-122018969-A - Operating system, method, equipment, medium and product compatible with Linux application

CN122018969ACN 122018969 ACN122018969 ACN 122018969ACN-122018969-A

Abstract

The application discloses an operating system, a method, equipment, a medium and a product compatible with a Linux application, wherein the system comprises a desktop operating system, the desktop operating system is compatible with and runs the Linux system, the desktop operating system is provided with a Linux service and a shell application in communication connection with the Linux service, the Linux system is provided with a window synthesizer and a Linux application corresponding to the shell application, the Linux application is in communication connection with the window synthesizer, the window synthesizer is in communication connection with the Linux service, the window synthesizer is used for transmitting a window image formed by the Linux application to the Linux service, the Linux service is used for receiving the window image and distributing the window image to the shell application, the shell application is used for displaying the window image and transmitting a received control instruction to the Linux service, the Linux service is also used for transmitting the control instruction to the window synthesizer, and the window synthesizer is also used for transmitting the control instruction to the Linux application. According to the application, the shell application is deployed on the desktop operating system, and then the window synthesizer and the Linux service are matched to enable the shell application to display the window image of the Linux application, so that the Linux application is used on the desktop operating system, the defect of application ecology of the conventional OpenHarmony operating system is overcome, the application scene of the OpenHarmony operating system is expanded, and convenience is brought to users.

Inventors

  • ZHANG QIYI

Assignees

  • 深圳开鸿数字产业发展有限公司

Dates

Publication Date
20260512
Application Date
20251212

Claims (10)

  1. 1. The operating system compatible with the Linux application is characterized by comprising a desktop operating system, wherein the desktop operating system is compatible with and runs the Linux system, the desktop operating system is provided with a Linux service and a shell application in communication connection with the Linux service, the Linux system is provided with a window synthesizer and a Linux application corresponding to the shell application, the Linux application is in communication connection with the window synthesizer, and the window synthesizer is in communication connection with the Linux service; the window synthesizer is used for transmitting the window image formed by the Linux application to the Linux service; the Linux service is used for receiving the window image and distributing the window image to the shell application; The shell application is used for displaying the window image and transmitting the received control instruction to the Linux service; the Linux service is further used for sending the control instruction to the window synthesizer; the window synthesizer is also used for transmitting the control instruction to the Linux application.
  2. 2. The Linux application-compatible operating system of claim 1, wherein a protocol-compliant service is further deployed within the Linux system, the protocol-compliant service being communicatively coupled to the window synthesizer, the protocol-compliant service being configured to be compatible with a third party protocol over a communication protocol supported by the window synthesizer such that Linux applications employing the third party protocol communicate with the window synthesizer via the protocol-compliant service.
  3. 3. A Linux application compatible method, characterized in that an operating system compatible with a Linux application according to any one of claims 1-2 is applied, and the Linux application compatible method specifically comprises: Receiving a window image formed by the Linux application through the window synthesizer, and transmitting the window image to the Linux service; And distributing the window image to a shell application corresponding to the Linux application through the Linux service, and displaying the window image through the shell application.
  4. 4. A Linux application compatible method according to claim 3, wherein before said receiving, by said window synthesizer, a window image formed by said Linux application, said method further comprises: controlling the shell application to start and sending an application start message to the Linux service; transmitting the application start message to a window synthesizer through the Linux service; and starting the Linux application corresponding to the shell application through the window synthesizer.
  5. 5. A method of compatibility of Linux applications according to claim 3, further comprising: Receiving a control instruction for the shell application through the Linux service and transmitting the control instruction to the window synthesizer; And transmitting the control instruction to a Linux application corresponding to the shell application through the window synthesizer, so that the Linux application responds to the control instruction.
  6. 6. The method according to claim 5, wherein the control command includes at least one of a control command formed based on a mouse input event, a control command formed based on the window image, or a control command inputted by an external control device.
  7. 7. A method of compatibility of a Linux application according to claim 3, wherein when the desktop operating system includes a protocol compatible service, the Linux application communicates directly with the window synthesizer when the Linux application supports a communication protocol used by the window synthesizer, and wherein when the Linux application supports a communication protocol used by the protocol compatible service, the Linux application communicates with the window synthesizer through the protocol compatible service.
  8. 8. A Linux application compatible device, characterized in that it comprises an operating system compatible with Linux applications, according to any of claims 1 to 2, a memory, a processor and a computer program stored on the memory and executable on the processor, said computer program being configured to implement the steps of the Linux application compatible method according to any of claims 3 to 7.
  9. 9. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the method of compatibility of Linux applications according to any of claims 3 to 7.
  10. 10. A computer program product, characterized in that it comprises a computer program which, when executed by a processor, implements the steps of the method of compatibility of Linux applications according to any of claims 3 to 7.

Description

Operating system, method, equipment, medium and product compatible with Linux application Technical Field The present application relates to the field of computer operating systems, and in particular, to an operating system, method, device, medium and product compatible with Linux applications. Background With the rapid development of information technology, intelligent terminal devices are becoming popular, and an operating system serves as a core software platform of the device, so that the importance of the operating system is self-evident. OpenHarmony is used as an open source project hatched and operated by an open atom open source foundation, and aims to construct a framework and a platform of an intelligent terminal equipment operating system so as to realize the prospect of everything interconnection. However, the application ecology of the existing OpenHarmony operating system has obvious defects in application types and quantity compared with other mature operating systems, so that the application scene expansion of the OpenHarmony operating system is limited, and inconvenience is brought to the use of users. There is thus a need for improvements and improvements in the art. Disclosure of Invention The application aims to solve the technical problem of providing an operating system, a method, equipment, a medium and a product compatible with Linux application aiming at the defects of the prior art. In order to solve the technical problems, the first aspect of the application provides an operating system compatible with a Linux application, which comprises a desktop operating system, wherein the desktop operating system is compatible with and runs the Linux system, and the desktop operating system is provided with a Linux service and a shell application in communication connection with the Linux service; the window synthesizer is used for transmitting the window image formed by the Linux application to the Linux service; the Linux service is used for receiving the window image and distributing the window image to the shell application; The shell application is used for displaying the window image and transmitting the received control instruction to the Linux service; the Linux service is further used for sending the control instruction to the window synthesizer; the window synthesizer is also used for transmitting the control instruction to the Linux application. The Linux application compatible operating system is characterized in that a protocol compatible service is further deployed in the Linux system, the protocol compatible service is in communication connection with the window synthesizer, and the protocol compatible service is used for being compatible with a third party protocol on a communication protocol supported by the window synthesizer, so that the Linux application adopting the third party protocol is communicated with the window synthesizer through the protocol compatible service. The second aspect of the present application provides a method for compatibility of Linux applications, which applies the operating system compatible with Linux applications as described above, and the method for compatibility of Linux applications specifically includes: Receiving a window image formed by the Linux application through the window synthesizer, and transmitting the window image to the Linux service; And distributing the window image to a shell application corresponding to the Linux application through the Linux service, and displaying the window image through the shell application. The method for compatibility of Linux applications, wherein before the window synthesizer receives a window image formed by the Linux applications, the method further comprises: controlling the shell application to start and sending an application start message to the Linux service; transmitting the application start message to a window synthesizer through the Linux service; and starting the Linux application corresponding to the shell application through the window synthesizer. The method for compatibility of Linux application, wherein the method further comprises the following steps: Receiving a control instruction for the shell application through the Linux service and transmitting the control instruction to the window synthesizer; And transmitting the control instruction to a Linux application corresponding to the shell application through the window synthesizer, so that the Linux application responds to the control instruction. The Linux application compatible method is characterized in that the control instruction at least comprises one of a control instruction formed based on a mouse input event, a control instruction formed based on the window image or a control instruction input by external control equipment. The method for the Linux application to be compatible, wherein when the desktop operating system comprises a protocol compatible service, the Linux application directly communicates with the window s