On Tue, Jun 30, 2020 at 9:03 AM Victor Norman <[email protected]> wrote:

> Joachim, et al.,
>
> Thanks for your response. Looking at that other thread helped me
> understand some stuff.
>
> But, I definitely need to add a new link on the login page to another
> page, which I will supply.
>
> Do you think this can be done with only an extension, and not changing the
> "core" code?
>

You could definitely do it by modifying the core code, if you wanted to;
however, you would need to modify the source code and rebuild the WAR file
to make sure that your changes are not wiped out every time Tomcat restarts
or you upgrade Guacamole.  Changing files directly in the deployed version
of the code is a bad idea.  If you go this route, you also have to make
sure that you merge changes in with the code as Guacamole updates, so you'd
probably want to create a fork of the Apache repo on github and then make
your changes in a specific branch, which you could then rebase as the
Guacamole code changes.

An extension is the best way to make changes.  It allows you to move the
core code from version to version without worrying about whether the
customizations will still be there, and the code provides for allowing you
to insert arbitrary HTML into various points in the interface.  There is
documentation here:

http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-patch-html

Beyond this you could get a lot fancier and do something like add an option
to the user menu or the Settings page.  This would require writing some
AngularJS code that would update various data structures that track the
menu items and pages available to the users, but should be doable.

-Nick

>

Reply via email to