You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by fed <re...@gmail.com> on 2022/06/16 08:44:03 UTC
Branding example of login page: how to set a different favicon?
Hi,
considering the example from the manual
https://github.com/apache/guacamole-client/tree/master/doc/guacamole-branding-example
How can I change the default guacamole favicon?
Thanks for the help.
R: Branding example of login page: how to set a different favicon?
Posted by MAURIZI Lorenzo <l....@comune.jesi.an.it>.
I'm sorry Michael and resdev for the incomplete information given.
In my guac-manifest.json the two "smallIcon" and "lageIcon" rows were there, but in the top of file so I didn't notice them and forgot to mention.
I don't remember exactly how I found them.
Regards
Lorenzo
-----Messaggio originale-----
Da: Michael Jumper <mj...@apache.org>
Inviato: giovedì 16 giugno 2022 23:39
A: user@guacamole.apache.org
Oggetto: Re: Branding example of login page: how to set a different favicon?
On Thu, Jun 16, 2022 at 1:56 AM MAURIZI Lorenzo <l....@comune.jesi.an.it> wrote:
>
> Hi,
>
> I think you should only declare in guac-manifest.json two png images with this exact name:
>
> "resources" : {
> "images/logo-64.png" : "image/png",
> "images/logo-144.png" : "image/png"
> },
>
> Then you put into “images” directory the two logo-64.png and
> logo-144.png that are the favicon in 64x64 pixels and 144x144 pixels
Everything declared within "resources" will be namespaced and beneath "app/ext/", isolated from the resources within the web application.
It's intentionally not possible to directly replace a resource used by the webapp with a resource from an extension. See:
https://guacamole.apache.org/doc/gug/guacamole-ext.html#extension-manifest
The properties for overriding the icon are missing from the documentation and example, but they are "smallIcon" and "largeIcon":
https://github.com/apache/guacamole-client/blob/4b161a5a6e4b7ea41087fc3a293cb2011dcafe37/guacamole/src/main/java/org/apache/guacamole/extension/ExtensionManifest.java#L95-L105
For example:
{
"guacamoleVersion" : "*",
"name" : "Guacamole Branding Example",
"namespace" : "guacamole-branding-example",
"smallIcon" : "path/to/small-icon.png",
"largelIcon" : "path/to/large-icon.png",
...
}
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: Branding example of login page: how to set a different favicon?
Posted by Michael Jumper <mj...@apache.org>.
On Thu, Jun 16, 2022 at 1:56 AM MAURIZI Lorenzo
<l....@comune.jesi.an.it> wrote:
>
> Hi,
>
> I think you should only declare in guac-manifest.json two png images with this exact name:
>
> "resources" : {
> "images/logo-64.png" : "image/png",
> "images/logo-144.png" : "image/png"
> },
>
> Then you put into “images” directory the two logo-64.png and logo-144.png that are the favicon in 64x64 pixels and 144x144 pixels
Everything declared within "resources" will be namespaced and beneath
"app/ext/", isolated from the resources within the web application.
It's intentionally not possible to directly replace a resource used by
the webapp with a resource from an extension. See:
https://guacamole.apache.org/doc/gug/guacamole-ext.html#extension-manifest
The properties for overriding the icon are missing from the
documentation and example, but they are "smallIcon" and "largeIcon":
https://github.com/apache/guacamole-client/blob/4b161a5a6e4b7ea41087fc3a293cb2011dcafe37/guacamole/src/main/java/org/apache/guacamole/extension/ExtensionManifest.java#L95-L105
For example:
{
"guacamoleVersion" : "*",
"name" : "Guacamole Branding Example",
"namespace" : "guacamole-branding-example",
"smallIcon" : "path/to/small-icon.png",
"largelIcon" : "path/to/large-icon.png",
...
}
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
R: Branding example of login page: how to set a different favicon?
Posted by MAURIZI Lorenzo <l....@comune.jesi.an.it>.
Hi,
I think you should only declare in guac-manifest.json two png images with this exact name:
"resources" : {
"images/logo-64.png" : "image/png",
"images/logo-144.png" : "image/png"
},
Then you put into “images” directory the two logo-64.png and logo-144.png that are the favicon in 64x64 pixels and 144x144 pixels
Then you zip, rename in JAR and put into extensions directory, as for instructions.
HTH
Best regards
Lorenzo
Da: fed <re...@gmail.com>
Inviato: giovedì 16 giugno 2022 10:44
A: user@guacamole.apache.org
Oggetto: Branding example of login page: how to set a different favicon?
Hi,
considering the example from the manual
https://github.com/apache/guacamole-client/tree/master/doc/guacamole-branding-example
How can I change the default guacamole favicon?
Thanks for the help.