selkies-project / selkies-vdi

WebRTC & Xpra desktops on Selkies
https://selkies.io
Apache License 2.0
66 stars 17 forks source link

Pass xpra resize-display arg, default value set to 'yes' #38

Closed reisbel closed 2 years ago

reisbel commented 2 years ago

Resize the virtual display to match the resolution of the client currently connected. This only applies to the start and start-desktop subcommands. If a resolution is given, this will be the initial resolution of the display and the display will be resizable.

Parameter

XPRA_RESIZE_DISPLAY: yes|no|WIDTHxHEIGHT
Default value: yes

Example - Configure XGA resolution

 spec:
   appEnv:
   - name: XPRA_RESIZE_DISPLAY
     value: "XGA"

A set of pre-defined aliases can also be used:

RESOLUTION_ALIASES = {
   "QVGA"  : (320, 240),
   "VGA"   : (640, 480),
   "SVGA"  : (800, 600),
   "XGA"   : (1024, 768),
   "1080P" : (1920, 1080),
   "FHD"   : (1920, 1080),
   "4K"    : (3840, 2160),
   "5K"    : (5120, 2880),
   "8K"    : (7680, 4320),
   }