jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

Set remote resizing as default #112

Open Loader23 opened 1 year ago

Loader23 commented 1 year ago

Hi,

I would like to have an Environment variable to set remote resizing as default. I switch often between different Devices and having this setting as default would be a great help. Even if you don't want to implement this, can you tell me which file I need to edit to achieve this?

Thanks :-)

Loader23 commented 1 year ago

I just found a solution for me :-) Adding this inside my dockerfile will overwrite the setting for it: sed -i "s/resize = 'scale';/resize = 'remote';/g" /opt/noVNC/app/ui.js Maybe there is a better solution but at least its working.^^ I would still prefer an environment variable to also use it in the Images from you ;-)

jlesage commented 1 year ago

Note that remote sizing is already the default, unless you are on a touch device or the browser's window is too small.

Loader23 commented 1 year ago

And because I always switch between Tablet and PC that was bothering me.^^