winboat icon indicating copy to clipboard operation
winboat copied to clipboard

fix: run multiple apps

Open AdianKozlica opened this issue 3 months ago • 4 comments

Fixes https://github.com/TibixDev/winboat/issues/322

AdianKozlica avatar Oct 13 '25 19:10 AdianKozlica

@AdianKozlica I think this might be a potentially exciting addition.

Can you please add more detail to the PR description? Make sure to list:

  • What the problem was
  • If this was a bug or a missing feature
  • How you addressed it, include design decisions made - justify adding additional services/programs to the WinBoat guest vs extending existing
  • Include any screenshots/recordings demonstrating the fix

Additionally please add comments/documentation in the new (go) code explaining briefly what it does

waffles-dev avatar Oct 17 '25 15:10 waffles-dev

Hello, so basically xfreerdp replaces the old instance of an app with a new one if the cli arguments are the same.

We can bypass this if we use a wrapper executable that has a dummy argument (in our case we use a random UUID).

Below is an example without the wrapper executable:

https://github.com/user-attachments/assets/2870a317-d9c9-4241-8264-5cebb10f2013

And below is the example with the wrapper:

https://github.com/user-attachments/assets/325cd5dc-1687-48ad-b263-2cfa3a57bfd3

AdianKozlica avatar Oct 17 '25 17:10 AdianKozlica

Hello, I have made it possible so that if the user hasn't pressed the shift key, it will use "1" as the dummy argument, if the user has pressed the shift key it will generate a random UUID and it won't replace the current instance.

Note: explorer.exe will still be launched seperately despite it having the same dummy argument, this behaviour also happens when rdp_exec is not used.

AdianKozlica avatar Oct 24 '25 18:10 AdianKozlica

Thankyou, is there anything special I need to do to test this? I dropped the new exe into the winboat dir in C:\Program Files, but they're still not launching.

Also, does this have any impact on users updating, or should they just need to update the guest using the zip?

I'll also note I get MS smartscreen blocking the app from running if I execute it in VNC - until I bypass it once. Could it be something like this preventing it running via RDP?

waffles-dev avatar Oct 25 '25 09:10 waffles-dev