On 11/21/2023 6:56 AM, Nick Couchman wrote:
On Tue, Nov 21, 2023 at 2:29 AM Jorge López Díaz <[email protected]> wrote:Hi,____ __ __ Is it possible to pass display params or something like that for VNC connection, as I read in the docs it’s not possible but using the official guacamole image it’s look like better than our integration, so we would like to know the config params that we need to view the VNC display like the official image.____ __Yes, it's definitely possible to pass display parameters for connections, but you'll have to be more specific as to what parameters you're looking to pass. I don't see a huge amount of difference between the two images you sent, other than the fact that the one from the official image seems to have black bars on the sides of the image, which is part of how the ManageClient component of the full Guacamole Client system is built.
Yep, this looks like just a lack of CSS styling surrounding the display, not a difference in display parameters. The client is rendering the display identically in both cases.
Jorge: things like whether the page background is black, whether the display is centered, are all outside the purview of the low-level client component. Just like any other element on a web page, if you want the appearance and location to be different than just "a box, wherever text would be", you will need to apply CSS of your choosing to implement that.
As for the *size* of the display, it is also on you to decide whether and how to scale the display. By default, the local display will be perfectly 1:1 the size of the remote display. If that's not what you're looking for, you'll have to invoke scale() as needed to reduce/increase the relative size of the display as necessary. This is how the standard Guacamole webapp scales the display to fit the window, scales the display to fit that toolbar of running connections, scales the display to fit the "recent connections" area, scales the display to fit the session recording playback area, etc.
See: https://guacamole.apache.org/doc/guacamole-common-js/Guacamole.Display.html#event:onresize https://guacamole.apache.org/doc/guacamole-common-js/Guacamole.Display.html#scale - Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
