Fmstrat / winapps

Run Windows apps such as Microsoft Office/Adobe in Linux (Ubuntu/Fedora) and GNOME/KDE as if they were a part of the native OS, including Nautilus integration.
8.48k stars 406 forks source link

Option to pause windows VM when not in use. #158

Open vega-d opened 3 years ago

vega-d commented 3 years ago

Windows tends to do "stuff" in the background, and if you're running winapps - literally in the background. If winapps can do virsh suspend RDPWindows on all windows closed and virsh resume RDPWindows when any window summoned then windows will be "paused" when not in use, freeing up system resources and preventing windows from doing shady stuff in the background.

thecmdrunner commented 3 years ago

I think there are two ways it can be done.

  1. Adding virsh suspend and virsh resume commands to the functions responsible for calling out xfreerdp with the USER, PASSWORD, DOMAIN, and the WIN_EXECUTABLE arguements in the winapps file ~/.local/bin/winapps. I'd make it resumes before everything else, and suspend if nothing else is running. Do note that this could mess with clipboard sharing via RDP.

  2. Run a debloat script like Chris Titus', or AME script, with the SimpleWall firewall app to restrict all apps from having network access except the ones that you want. Although make sure you enable RDP in the filters.

I have done the later solution and am quite happy with it.