Method and system for limiting users to operate only current program window in desktop system

By limiting the use of full-screen transparent modal mask layer windows and function buttons in the Linux operating system, combined with blocking shortcut keys and remote connection services, and hiding the taskbar, the problem of users being unable to operate only the current program window is solved, ensuring data Process and monitor the normal operation of jobs.

CN118467090BActive Publication Date: 2024-10-22KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410910869.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-22
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

In the Linux operating system, users cannot be effectively restricted to only operate the current program window, causing data processing and monitoring tasks to be affected.

Method used

After the user opens the current program, open a full-screen transparent top-level modal mask window, close its function buttons, and use this window as the parent window to create the only operable child window, shield system shortcut keys, and close remote connection services. And hide the taskbar to ensure that users can only operate in the current program.

Benefits of technology

Effectively restrict user operations to other program windows, ensuring that the data processing and monitoring jobs of the current program run normally until the application is closed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467090B_ABST
    Figure CN118467090B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for limiting users to operate only the current program window in a desktop system. The method of the present invention includes, after the user opens the current program, first opening a full-screen transparent top modal mask layer window through the current program, closing the function buttons in the modal mask layer window, and then using the modal mask layer window as the parent window to create a child window as the only operable window of the current program, so that the user can only operate in the only operable window created by the current program and cannot operate other program windows other than the only operable window. The present invention is intended to target specific applications in some desktop systems so that after opening, users can only operate the program window and cannot click or switch to other application windows until the application is closed to ensure the normal operation of data processing, monitoring and other operations of the current program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of security control of operating systems and application programs, and in particular to a method and system for limiting a user to operate only a current program window in a desktop system. Background Art

[0002] In some Linux operating system usage scenarios, only one of the software displayed on the desktop can be operated, and other software displayed can only be observed but not operated. For example, some software and hardware environment detection operators need to detect data. If data anomalies are found, they need to perform necessary operations on the controllable interface. They have no right to operate other software or open and close applications to ensure data processing flow. However, a normal software interface cannot restrict users from operating windows other than the current software window. Therefore, how to restrict users to only operate the current software window has become a key technical problem that needs to be solved urgently. Summary of the invention

[0003] Technical problem to be solved by the present invention: In view of the above-mentioned problems in the prior art, a method and system for limiting users to only operate the current program window in a desktop system are provided. The present invention aims to enable users to only operate the program window after opening specific applications in some desktop systems, and cannot click on or switch to other application windows until the application is closed, so as to ensure the normal operation of data processing, monitoring and other operations of the current program.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] A method for limiting a user to operate only the current program window in a desktop system, comprising: after the user opens the current program, first opening a full-screen transparent top modal mask layer window through the current program, closing the function buttons in the modal mask layer window, and then using the modal mask layer window as a parent window to create a child window as the only operable window of the current program, so that the user can only operate in the only operable window created by the current program and cannot operate other program windows other than the only operable window.

[0006] Optionally, after the user opens the current program, the method further includes shielding system shortcut keys in the current program to prevent the user from using shortcut keys to switch application programs or switch to other terminals.

[0007] Optionally, the desktop system is a Linux operating system, and shielding the system shortcut keys in the current program refers to using a gsettings command and a setxkbmap command to close the system shortcut keys.

[0008] Optionally, after the user opens the current program, the method further includes closing the remote connection service in the current program to prevent the user from killing the process of the current program after connecting to the desktop system using the remote connection service.

[0009] Optionally, the remote connection service includes a background service sshd of a remote connection tool ssh.

[0010] Optionally, after the user opens the current program, the method further includes hiding the taskbar to prevent the user from switching to other programs through the taskbar.

[0011] Optionally, the desktop system is a Linux operating system, and hiding the taskbar refers to closing a taskbar panel program of the Linux operating system to achieve the purpose of hiding the taskbar.

[0012] Optionally, the function buttons for closing the modal mask layer window include a window maximization button, a window minimize button and a window title bar for closing the modal mask layer window.

[0013] In addition, the present invention also provides a system in a desktop system that limits users to only operate the current program window, including a microprocessor and a memory connected to each other, and the microprocessor is programmed or configured to execute the method in the desktop system that limits users to only operate the current program window.

[0014] In addition, the present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be programmed or configured by a microprocessor to execute the method of limiting the user to operate only the current program window in the desktop system.

[0015] Compared with the prior art, the present invention mainly has the following advantages: the method of the present invention includes: after the user opens the current program, first opening a full-screen transparent top modal mask layer window through the current program, closing the function buttons in the modal mask layer window, and then using the modal mask layer window as the parent window, creating a child window as the only operable window of the current program, so that the user can only operate in the only operable window created by the current program but cannot operate other program windows other than the only operable window. The present invention is aimed at specific applications in some desktop systems so that after opening, the user can only operate the program window but cannot click on or switch to other application windows until the application is closed to ensure the normal operation of data processing, monitoring and other operations of the current program. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Schematic diagram of the process of the embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following will take the Kylin server operating system sp3 (supporting ARM and X86 platforms) as an example of a desktop system to further explain in detail the method and system for limiting users to only operate the current program window in the desktop system of the present invention.

[0018] like Figure 1 As shown, the method for limiting the user to operate only the current program window in the desktop system of this embodiment includes, after the user opens the current program, first opening a full-screen transparent top modal mask layer window through the current program, closing the function button in the modal mask layer window, and then using the modal mask layer window as the parent window, creating a child window as the only operable window of the current program, so that the user can only operate in the only operable window created by the current program and cannot operate other program windows other than the only operable window. The current program can be built using qt or other linuxui interface libraries. After adopting the method of this embodiment, for some applications to ensure data processing flow or special monitoring scenarios, the user cannot perceive the existence of the transparent window, but cannot click on other applications under the transparent window. After opening the program, only the program window can be operated, and it is impossible to click or switch to other application windows until the application is closed. In this embodiment, closing the function button in the modal mask layer window includes closing the window maximize button, window minimize button and window title bar of the modal mask layer window.

[0019] See also Figure 1 In this embodiment, after the user opens the current program, the system shortcut keys are shielded in the current program to prevent the user from using the shortcut keys to switch applications or switch to other terminals. In this embodiment, the desktop system is a Linux operating system, and shielding the system shortcut keys in the current program means using the gsettings command and the setxkbmap command to close the system shortcut keys.

[0020] See also Figure 1 In this embodiment, after the user opens the current program, the remote connection service is also closed in the current program to prevent the user from killing the process of the current program after connecting to the desktop system using the remote connection service. In this embodiment, the remote connection service includes the background service sshd of the remote connection tool ssh. In addition, various common remote connection services can be detected as needed, and when a specified remote connection service is detected, the remote connection service is closed to achieve automatic detection of the remote connection service.

[0021] See also Figure 1, after the user opens the current program, this embodiment also includes hiding the taskbar to prevent the user from switching to other programs through the taskbar. The desktop system of this embodiment is a Linux operating system, and hiding the taskbar means closing the taskbar panel program of the Linux operating system to achieve the purpose of hiding the taskbar. In the Galaxy Kylin server operating system sp3, the taskbar panel program is the kylin-panel program.

[0022] In summary, the method for limiting users to only be able to operate the current program window in the desktop system of this embodiment is to write a window program by using Qt or other Linux UI interface libraries, create a transparent mask layer in a modal manner, and then freeze all icons and windows displayed on the desktop by orderly setting such as closing system shortcut keys, closing remote connection services, and closing the taskbar, so that only the current program window can be operated. The method for limiting users to only be able to operate the current program window in the desktop system of this embodiment is aimed at specific applications in some desktop systems so that after opening, users can only operate the current program window, and cannot click or switch to other application windows until the application is closed, which can ensure the normal operation of data processing, monitoring and other operations of the current program.

[0023] In addition, this embodiment also provides a system for limiting a user to operate only the current program window in a desktop system, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute a method for limiting a user to operate only the current program window in the desktop system. In addition, this embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program is programmed or configured by the microprocessor to execute a method for limiting a user to operate only the current program window in the desktop system.

[0024] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0025] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for limiting users to operate only the current program window in a desktop system. It is characterized in that The method includes, after the user opens the current program, first opening a full-screen transparent top modal mask layer window through the current program, closing the function buttons in the modal mask layer window, and then using the modal mask layer window as the parent window to create a child window as the only operable window of the current program, so that the user can only operate in the only operable window created by the current program and cannot operate other program windows other than the only operable window; after the user opens the current program, the method also includes shielding system shortcut keys in the current program to prevent the user from using shortcut keys to switch applications or switch to other terminals, closing the remote connection service in the current program to prevent the user from killing the process of the current program after using the remote connection service to connect to the desktop system, and hiding the taskbar to prevent the user from switching to other programs through the taskbar.

2. The method for limiting a user to operate only the current program window in a desktop system according to claim 1, It is characterized in that The desktop system is a Linux operating system, and shielding the system shortcut keys in the current program refers to using the gsettings command and the setxkbmap command to close the system shortcut keys.

3. The method for limiting a user to operate only the current program window in a desktop system according to claim 1, It is characterized in that The remote connection service includes the background service sshd of the remote connection tool ssh.

4. The method for limiting a user to operate only the current program window in a desktop system according to claim 1, It is characterized in that The desktop system is a Linux operating system, and hiding the taskbar refers to closing the taskbar panel program of the Linux operating system to achieve the purpose of hiding the taskbar.

5. The method for limiting a user to operate only the current program window in a desktop system according to claim 1, It is characterized in that The function buttons for closing the modal mask layer window include a window maximization button, a window minimize button and a window title bar for closing the modal mask layer window.

6. A system in a desktop system that limits a user to operate only the current program window, comprising a microprocessor and a memory connected to each other, It is characterized in that The microprocessor is programmed or configured to execute the method for limiting the user to operate only the current program window in the desktop system according to any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored therein, It is characterized in that The computer program is used to be programmed or configured by a microprocessor to execute the method of limiting the user to operate only the current program window in the desktop system according to any one of claims 1 to 5.