On Tue, Nov 26, 2019 at 8:51 PM Nick Couchman <vn...@apache.org> wrote:
> On Mon, Nov 25, 2019 at 12:33 PM Ben Davis <b...@boldidea.org> wrote: > >> That makes sense. The two main things I want to do are A) modify the UI >> and B) add a REST endpoint that returns VM status info for a connection. >> I've done very little with Java in the past. Are there example extensions I >> can look at that show how to do those two things? >> >> > Both of these should be doable, although item B can be a little more > problematic, depending on what you're trying to do. For item A, I'd take > a look at the guacamole-ext page of the manual: > Well, that was fun...apparently Gmail decided I was done typing my message! Anyway, as I was saying, have a look at the guacamole-ext page: http://guacamole.apache.org/doc/gug/guacamole-ext.html There's a section toward the top of the page on updating HTML that tells you how to insert code that will be placed within certain sections of the web application. You can also write AngularJS directives, controllers, etc., and have those generate UI pages. For item B, you can definitely return the VM status for a connection and display that on the page; however, because the application operates rather asynchronously, your mileage may vary on how easy that is to do. I ran into some issues writing the WoL module ( https://github.com/apache/guacamole-client/pull/374) trying to get the hostname of the connection through the decorating module, and ended up having to, somewhat clumsily, feed the hostname to ping back into the REST API in order to get the status. It would be a lot cleaner if I could have done it all on the back-end, but it would have required some significant reworking of the code. May still happen, but who knows. Anyway, have a look at any/all of the extensions, as there are various places that each of them do one or the other or both of what you're looking for. And, of course, post back here if you have any specific questions. -Nick