TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
761 stars 138 forks source link

Confirmation for closing viewer #300

Closed phraide closed 2 years ago

phraide commented 2 years ago

Is it possible to have a confirmation request when a user presses the disconnect button or closes the java viewer by mistake ?

dcommander commented 2 years ago

It's possible, but can you provide more details about the workflow that necessitates the feature?

phraide commented 2 years ago

VNC server is spawned by a job scheduler. Client is launched connecting to http port of VNC server serving the jnlp file.

dcommander commented 2 years ago

I'll see what I can do.

dcommander commented 2 years ago

Implemented. Please test the feature and make sure I didn't screw something up.

dcommander commented 2 years ago

(Note that you will have to enable the feature by setting ConfirmClose=1 in the parameter list in the .jnlp file that your portal generates. You might also consider setting NoNewConn=1 if you aren't doing so already.)