You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had users complaining about being unable to copy'n'paste multiple files in XFCE's Thunar file manager in OOD Linux interactive desktop sessions.
GTK applications seem to remember names of files to copy separated by newlines and won't accept them back on paste separated by carriage return and newline.
The issue seems to be due to automatic noVNC clipboard sync changing newline (\n) to carriage return+newline (\r\n) (at least on Windows clients). On the next click on the noVNC canvas that is synced back verbatim to the remote server. The check at
doesn't catch it because technically it differs in the additional carrage returns inserted by the client.
Conversely copy'n'pasting multiple files in Thunar works when not placing any additional mouse clicks between copying and inserting, be it Ctrl+c and Ctrl+v or using the context menu. If there are any other clicks inbetween, Thunar's Paste option will be deactivated in the context menu.
This is with Microsoft Edge 129.0.2792.65 and Google Chrome 129.0.6668.71 on Windows 10 and OOD 3.1.4. Firefox is not affected as it does not automatically sync the clipboard.
My workaround for now consist of this bit of code which basically prevents the return sync if contents only differ in newline representation which solves the issue for me:
I had users complaining about being unable to copy'n'paste multiple files in XFCE's Thunar file manager in OOD Linux interactive desktop sessions.
GTK applications seem to remember names of files to copy separated by newlines and won't accept them back on paste separated by carriage return and newline.
The issue seems to be due to automatic noVNC clipboard sync changing newline (\n) to carriage return+newline (\r\n) (at least on Windows clients). On the next click on the noVNC canvas that is synced back verbatim to the remote server. The check at
ondemand/apps/dashboard/public/noVNC-1.3.0/app/ui.js
Line 958 in a5d0a0e
Conversely copy'n'pasting multiple files in Thunar works when not placing any additional mouse clicks between copying and inserting, be it Ctrl+c and Ctrl+v or using the context menu. If there are any other clicks inbetween, Thunar's Paste option will be deactivated in the context menu.
This is with Microsoft Edge 129.0.2792.65 and Google Chrome 129.0.6668.71 on Windows 10 and OOD 3.1.4. Firefox is not affected as it does not automatically sync the clipboard.
My workaround for now consist of this bit of code which basically prevents the return sync if contents only differ in newline representation which solves the issue for me:
Would this be considered a valid solution to the problem? If so, I can certainly turn it into a PR.
What might a better solution look like?
The text was updated successfully, but these errors were encountered: