diff options
author | Jonathan Bauer | 2014-05-05 17:13:47 +0200 |
---|---|---|
committer | Jonathan Bauer | 2014-05-05 17:13:47 +0200 |
commit | 893424d61c8feffead49e95ef9f06ed79bee44be (patch) | |
tree | 3811755207d2b37994dd23b9f56cc183c5aa7233 | |
parent | [vmchooser2] Full screen option, pass on any existing arguments (diff) | |
download | tm-scripts-893424d61c8feffead49e95ef9f06ed79bee44be.tar.gz tm-scripts-893424d61c8feffead49e95ef9f06ed79bee44be.tar.xz tm-scripts-893424d61c8feffead49e95ef9f06ed79bee44be.zip |
[vmchooser] fix regex for HOSTRES.TXT generation
fixes fullscreen in VMs when used with a dual-head monitor setup
-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 18df10d3..36e06e7e 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 '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" +xrandr | grep -o -E 'connected\s*(primary)?\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/" |