jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

Clipboard Auto Sync #86

Open djarbz opened 1 year ago

djarbz commented 1 year ago

Is it possible to enable auto syncronization of the remote clipboard with the local clipboard? It is a bit of a pain to have to paste into the clipboard widget and then paste again inside the VNC session and to remember to do so.

jlesage commented 1 year ago

The local and remote clipboards are synchronized. Are you suggesting that a "ctrl+v" into the clipboard widget automatically performs a "ctrl+v" into the remote app ?

djarbz commented 1 year ago

I have to use the clipboard widget in the side panel in order to transfer to/from the app. I can't copy something on my host PC and paste it directly into the app or vice versa.

jlesage commented 1 year ago

I can't copy something on my host PC and paste it directly into the app or vice versa.

To my knowledge this is not something that can be done: for security reason, a web page cannot freely access the clipboard without user intervention.

djarbz commented 1 year ago

Would ctrl+v or ctrl+c not be intervention? I swear I have used other HTML VNC like apps before that accomplish this, I know other apps such as code-server require HTTPS for the clipboard to work. I'll have to see if I can find any examples, it's been a while.

djarbz commented 1 year ago

Looks like it is not supported by noVNC yet, see this PR: https://github.com/novnc/noVNC/pull/1347

jlesage commented 1 year ago

Thanks for the pointer! I will follow this thread closely.