summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-04-29 16:38:49 +0200
committerJonathan Bauer2014-04-30 17:23:45 +0200
commit2511c04b0512ce0ba05888001411e02da15eaec8 (patch)
tree81485c89497c6ffb7fa6c90da09adac0e225b653
parent[vbox] Simplified script list to be patched with openslx binary path (diff)
downloadtm-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-xremote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt2
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/"