diff options
| author | Simon Rettberg | 2014-04-29 16:38:49 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2014-04-30 17:23:45 +0200 |
| commit | 2511c04b0512ce0ba05888001411e02da15eaec8 (patch) | |
| tree | 81485c89497c6ffb7fa6c90da09adac0e225b653 | |
| parent | [vbox] Simplified script list to be patched with openslx binary path (diff) | |
| download | tm-scripts-2511c04b0512ce0ba05888001411e02da15eaec8.tar.gz tm-scripts-2511c04b0512ce0ba05888001411e02da15eaec8.tar.xz tm-scripts-2511c04b0512ce0ba05888001411e02da15eaec8.zip | |
[vmchooser] Fix resolution detection for dualhead setups (only consider left most output, not whole virtual screen)
| -rwxr-xr-x | remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt index f5878b9b..18df10d3 100755 --- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt +++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt @@ -481,7 +481,7 @@ PID_LPD="$!" # via virtual floppy cp "$xmlfile" "$VMCHOOSER_DIR/fd-loop/config.xml" # Add another file with resolution information -xrandr | grep -o -E 'current\s*[0-9]+\s*x\s*[0-9]+' | cut -c 8- | sed -r 's/(\s|\t|\n)//g' | head -n 1 > "$VMCHOOSER_DIR/fd-loop/hostres.txt" +xrandr | grep -o -E 'connected\s*[0-9]+x[0-9]+\+0\+0' | grep -o -E '[0-9]+x[0-9]+' | head -n 1 > "$VMCHOOSER_DIR/fd-loop/hostres.txt" # Add our magic openslx binary that sets the correct guest resolution cp "$VMCHOOSER_DIR/data/openslx.exe" "$VMCHOOSER_DIR/fd-loop/" |
