linuxserver/docker-baseimage-kasmvnc

[FEAT] set fixed resolution and use local scaling by default

Opened this issue · 2 comments

Is this a new feature request?

  • I have searched the existing issues

Wanted change

I want to set a environment variable with a resolution, when connection to the webvnc client, it should have this screen resolution from the environment variable and also scaling mode should be "Local scaling" instead of "Remote resizing".

Reason for change

Sometimes the default option of "remote resizing" is not big enough resolution to fit all the content. By making the chosen resolurion as the default and mode to "loal scaling", things just get smaller.

Proposed code change

I tried, but I didn't find the position inside the code, where default settings are saved.

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

The best way to fix this is the same way that a Linux desktop does. You would scale the UI at the native resolution.
Openbox is hard mode as you have to manually set gtk scale and fonts, but stuff like LDE and XFCE has it baked in.
As far as more launch options I do this on steamOS
https://github.com/linuxserver/docker-steamos/blob/master/root/defaults/startwm.sh#L54

https://github.com/linuxserver/docker-steamos/blob/master/root/etc/s6-overlay/s6-rc.d/svc-kasmvnc/run#L26