Added Support for killing flatpak FreeRDP#43
Added Support for killing flatpak FreeRDP#43Jacob-Friedberg wants to merge 2 commits intowinapps-org:mainfrom
Conversation
|
Please sign off the commit (see checks -> DCO for instructions). However, why did you PR this to the launcher and not to WinApps directly? |
|
@Jacob-Friedberg Thank you for your contribution. Your understanding of the project and the launcher is largely correct. I agree that your proposed addition belongs in the launcher, as it directly improves the behaviour of the “kill FreeRDP processes” button. The behaviour you’re observing wherein full desktop RDP sessions terminate FreeRDP immediately, but RAIL application windows often leave the process running for several minutes is expected and originates from Windows rather than FreeRDP. In RAIL mode, Windows deliberately keeps the RDP session alive for a short period in case the user launches another application, avoiding the overhead of re-initialising the session and logging in again. This is governed by internal Microsoft heuristics. There may be some group policy settings that influence it, but the default behaviour is largely opaque. Your PR looks mostly fine:
Finally, as Oskar mentioned, commits need to be signed ( |
Added support to kill Flatpak FreeRDP instances. Currently, the launcher does not fully terminate flatpak instances, leading to odd behavior. Based on initial work by Jacob Friedberg. Signed-off-by: Rohan Barar <[email protected]>
e454ec0 to
d318367
Compare
|
@oskardotglobal Following your review, it would be best to merge this PR together with winapps-org/winapps#874, as both implement complementary changes to FreeRDP process lifecycle monitoring. |
… main WinApps script. Signed-off-by: Rohan Barar <[email protected]>
|
@oskardotglobal FYI this PR now depends on the changes in winapps-org/winapps#874, so please hold off on merging until that PR is reviewed and merged. |
|
@KernelGhost Got it. By the way, you can put a "Depends on <#id or link to an issue on another repo>" to have @dpulls block it automatically :) |




Update winapps-launcher.sh to kill flatpaks
added support to kill freeRDP instances that are created from the flatpak version of freeRDP as it is one of the options on many winapps install guides. Normally when you ask the launcher to kill the freeRDP session it will not fully terminate flatpak instances. This leaves them open with odd behavior.
The code provided checks to see if flatpak is installed, then checks to see if FreeRDP is currently running as a process. If it is then it will kill it using the flatpak command. Otherwise the program continues as normal.
PID's provided as feedback appear to match the PIDS provided by flatpak PS on Kubuntu 24.04, so even if a flatpak process is killed this way the feedback will likely be accurate.
Depends on winapps-org/winapps#874