Felix Fischer created GUACAMOLE-1583:
----------------------------------------
Summary: Dynamic Resolution Update for vnc connections
Key: GUACAMOLE-1583
URL: https://issues.apache.org/jira/browse/GUACAMOLE-1583
Project: Guacamole
Issue Type: Improvement
Components: guacamole-server, guacd, Terminal, VNC
Reporter: Felix Fischer
I think it would be possible to dynamically update the resolution of a vnc
connection to the actual browser window size by getting the inner resolution of
the window using javascript like so:
{code:java}
window.innerWidth
window.innerHeight
{code}
and then setting this resolution using xrandr.
I am unsure if it is already possible, but all you would need is a way to
execute a command in the same shell as the vnc user is logged in (otherwise
xrandr won't be able to access the display).
If this was possible, you could simply execute the following commands:
{{}}
{code:java}
cvt "$WIDTH" "$HEIGHT" "$REFRESH" | grep Modeline | sed "s/Modeline//" | xargs
xrandr --newmode
xrandr --addmode "$DEVICE" "$WIDTH"x"$HEIGHT"_"$REFRESH".00
xrandr --output "$DEVICE" --mode "$WIDTH"x"$HEIGHT"_"$REFRESH".00{code}
{{}}
and this would change the resolution of the xsession to whatever the window
size was.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)