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

Nick Couchman commented on GUACAMOLE-1563:
------------------------------------------

[~wenn]: It isn't just the event listener that you'll need - in fact, I don't 
think an event listener would be required at all. Just thinking about it off 
the top of my head I would say you'd need the following:
* To register an application in your remote O/S (Windows, or Linux + xrdp) that 
handles http(s):// links. This would take the place of a web browser as the 
default action for any/all web links.
* The application could use RDP's support of arbitrary channels to send that 
data to the RDP client (Guacamole - guacd, more specifically), where the 
event/action could be handled by guacd.
* Once guacd gets the data on the custom RDP channel, it can then translate it 
into something that gets sent on to the Guacamole Client JavaScript webapp (in 
the user's browser). Essentially, as with any RDP data, it needs to be 
translated to Guacamole Protocol data.
* The Guacamole Client JavaScript application can then get the event and launch 
a new tab or window with the link that the user clicked on.

So, yes, it seems like it can be done, but I don't think of it as a simple 
task, and the above list is a greatly over-simplified, high-level view of what 
(I think) it would take to do it.

> Question: Open link in external webbrowser
> ------------------------------------------
>
>                 Key: GUACAMOLE-1563
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1563
>             Project: Guacamole
>          Issue Type: Task
>          Components: guacamole
>            Reporter: peter
>            Priority: Major
>
> I'd like to open a link clicked within an RDP session to open in the external 
> browser. In contrast to GUACAMOLE-1534 I'm in full control of what happens 
> when a link is clicked. So I could, for example, fire a custom event within 
> the RDP session that contains the link url.
> Can you point me in the direction of what needs to be done for this? For 
> example:
>  * Create an event listener 
> [https://guacamole.apache.org/doc/gug/event-listeners.html|http://example.com/]
>  * ? Create a tunnel ?
>  * Register a custom event
>  * Fire that event within the session
>  * Catch it and retrieve the event payload
> Thanks in advance!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to