Skip to content

Default to Local Scaling? #249

Answered by jhsansom
jhsansom asked this question in Q&A
May 21, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Solved! (Kind of!) For context, I am using a docker-webtop container rather than pure KasmVNC.

This particular setting seems to be stored in /kclient/public/index.html. Specifically, there is a line with the following:
<iframe class="vnc" src="vnc/index.html?autoconnect=1&resize=remote&clipboard_up=true&clipboard_down=true&clipboard_seamless=true&show_control_bar=true<% if(path){ %><%- path -%><% } %>"></iframe>

Changing resize=remote to resize=scale causes the setting to change as well. This can be done prior to bootup by adding the following line to the file root/defaults/startwm.sh (solution obtained from here):
sudo sed -i 's/resize=remote/resize=scale/g' /kclient/public/index.html

No…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jhsansom
Comment options

Answer selected by jhsansom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant