VsLinuxDebug icon indicating copy to clipboard operation
VsLinuxDebug copied to clipboard

[vNext] Launch GUI After Deploying Package

Open DamianSuess opened this issue 3 years ago • 4 comments

WARNING: EXPERIMENTAL FEATURE

Research the experimental feature of the launching of uploaded packages via SSH.

From a standard SSH connection, the application can be launched. However, SSH.NET the process will start and then immediately close. This may be due to the closing SSH.NET connection after the command is sent.

DamianSuess avatar Dec 06 '22 17:12 DamianSuess

Validation Notes

Launch Command:

DISPLAY=:0 dotnet "./VSLinuxDbg/GuiNet6/GuiNet6.dll" &
  1. The launch command must be sent from the home directory. Using ~/... throws, "The command could not be loaded,..."
  2. When the SSH connection is closed, the application will close.

DamianSuess avatar Dec 06 '22 17:12 DamianSuess

Considerations:

  1. Persist an open connection of the GUI application after it is launched. Wait for the window to close and then close the connection.
    • PRO: Light-weight and simple via command line
    • CON: Need a separate thread/connection to maintain connectivity
  2. Use another tooling to allow the app to run after the connection is lost
    • CON: External tooling may cause unnecessary conflicts

DamianSuess avatar Dec 06 '22 18:12 DamianSuess

This is already fixed in my next pull request 👯 i'll merge this tomorrow,... because i've to use it with x11/openGL

zeusware avatar Jul 05 '23 20:07 zeusware

Wonderful, thank you. I hope that my most recent changes to develop do not cause merge conflicts for you - sample GuiNet6 app with PR #68

Can't wait to see your approach

DamianSuess avatar Jul 05 '23 21:07 DamianSuess