-
Notifications
You must be signed in to change notification settings - Fork 439
Improve FreeRDP process lifecycle tracking and cleanup #874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
for more information, see https://pre-commit.ci
oskardotglobal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't test the flatpak changes because Flatpak on NixOS is a hassle but this looks good to me
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
|
I just tested this on Arch Linux (not flatpak) and it works as intended. I made a duplicate
Futhermore, an orphaned |
|
@Maxb0tbeep Thanks for taking the time to test these changes! In the commits above, |
|
@KernelGhost Interesting. The behavior that I experienced when I cloned your branch was that it only cleaned up orphaned files once a FreeRDP session was started, so starting up WinApps from the launcher (or just starting the container manually) didn't remove the files. |
|
@Maxb0tbeep That behaviour is expected given the way things are currently written. Implementing cleanup at container launch would be difficult, but your described desired behaviour can certainly be added to the launcher. To avoid having two separate projects (winapps and winapps-launcher) modifying process-lifecycle tracking files, one possible approach would be to add a new winapps command (something like 'killrdp') to the main winapps script. This command could inherit the existing FreeRDP termination logic currently present within the launcher, while also explicitly handling cleanup of the cproc files (currently not done by the launcher implementation). The launcher would then invoke an instance of winapps with the 'killrdp' argument rather than implementing its own termination logic. Curious to hear your thoughts on whether this approach would be acceptable? |
|
@KernelGhost sounds good to me. |
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
… and cleaning FreeRDP process tracking files. Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
|
@Maxb0tbeep Can you please test these changes? |
|
@KernelGhost works for me :) |
|
@Maxb0tbeep Thanks for taking a look. @oskardotglobal would you mind proofreading and testing this alongside winapps-org/winapps-launcher#43 as a final check? |
This PR improves FreeRDP process lifecycle tracking, with better support for the Flatpak as well as automatic cleanup of orphaned process tracking files on startup. This PR also has the potential to address winapps-org/winapps-launcher#27.
Warning
I no longer have WinApps installed, so I’ve only been able to validate this through basic unit tests. I’d appreciate another maintainer testing the changes. Many thanks in advance.
Closes #252.