[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17741327#comment-17741327
 ] 

Mike Jumper commented on GUACAMOLE-1831:
----------------------------------------

{quote}
I've tested a two ways copy/paste with Chrome browser between iOS application 
and Guacamole interface with remote Linux: nothing works.
{quote}

Are you're referring to iOS Chrome (which is actually effectively Safari with a 
Chrome skin due to restrictions enforced by Apple on third-party web browsers) 
or a desktop version of Chrome?

{quote}
When using online editing Google Docs (running under HTML5) : copy/paste works 
fine with Safari and Chrome.
When using paint.sumo.app online (running under HTML5) : copy/paste works fine 
with Safari and Chrome.
{quote}

There are different technical requirements for accessing clipboard with 
applications where handling that data happens 100% locally (the apps cited 
above) and applications where this must occur remotely (Guacamole). The API 
that Guacamole uses for clipboard access is the "Asynchronous Clipboard API":

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API

This can only work if:

* The browser supports it (most do, with the partial exception of Firefox): 
https://caniuse.com/async-clipboard
* You are using HTTPS (browsers may block access to any site not served over 
HTTPS).
* You grant permission (your browser should prompt you whether you wish to 
allow access). If you deny access, accidentally or otherwise, Guacamole will 
not be able to read or write to your clipboard until you change that setting.

If the browser you're using does not fully support the Asynchronous Clipboard 
API, you will have to use the clipboard editor in the Guacamole menu if you 
want to transfer data in/out of the local clipboard. There is simply no other 
way for an application like Guacamole to use your local clipboard.

See: https://guacamole.apache.org/faq/#local-clipboard

There is also a discussion in our FAQ regarding the type of clipboard access 
used by the applications you mentioned and why it absolutely cannot be used for 
an application providing remote access like Guacamole:

https://guacamole.apache.org/faq/#copy-paste-events

Based on (1) the description provided thus far and (2) the fact that we 
ourselves and others use clipboard on a daily basis within Guacamole without 
any issue (see: https://guacamole.apache.org/faq/#probably-not-a-bug), I 
strongly suspect that the issue at hand is simply that the browser you're using 
does not fully support the necessary API.

> Copy Paste between iOS and Guacamole with Safari not working
> ------------------------------------------------------------
>
>                 Key: GUACAMOLE-1831
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1831
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole
>    Affects Versions: 1.5.2
>            Reporter: Stephane LAGARDE
>            Priority: Minor
>
> Copy text in Guacamole+Linux OK but paste in iOS applications not working
> Copy text in iOS applications OK but paste in Guacamole+Linux not working
> Between NoMachine and iOS : copy/paste works fine



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to