diff options
author | Christian Rößler | 2017-02-08 18:42:20 +0100 |
---|---|---|
committer | Christian Rößler | 2017-02-08 18:42:20 +0100 |
commit | ca94c70d924cab3e74f26fba503fcc7acb947b64 (patch) | |
tree | c69d003185371fa14e5add8c4d33a858640e010a | |
parent | [run-virt] resolution_standalone: Little bugfix (diff) | |
download | tm-scripts-ca94c70d924cab3e74f26fba503fcc7acb947b64.tar.gz tm-scripts-ca94c70d924cab3e74f26fba503fcc7acb947b64.tar.xz tm-scripts-ca94c70d924cab3e74f26fba503fcc7acb947b64.zip |
[run-virt] resolution scripts: Added two exports (seem to be missing sometimes; Linux Mint whined)
-rwxr-xr-x | remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution | 4 | ||||
-rwxr-xr-x | remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution b/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution index 24a0594f..35fb42e3 100755 --- a/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution +++ b/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution @@ -9,7 +9,7 @@ MOUNTDIR=/mnt/diskmount RESFILE="${MOUNTDIR}"/openslx.ini -DISPLAY=:0.0 +export DISPLAY=:0.0 check_resolution() { # Now, let's wait even more seconds to see if another process re-changes res.: @@ -44,7 +44,7 @@ fi XAUTHDATEI=$(ps aux | grep -o "X.* \-auth *[^ ]*" | awk '{print $NF}') if [ -n "$XAUTHDATEI" ]; then logger "openslx resolution utility: XAUTHFILE found." - XAUTHORITY="${XAUTHDATEI}" + export XAUTHORITY="${XAUTHDATEI}" else logger "openslx resolution utility: XAUTHFILE not found. Exiting." exit 1 diff --git a/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone b/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone index c6cac4f9..bc139cdb 100755 --- a/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone +++ b/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone @@ -9,7 +9,7 @@ MOUNTDIR=/mnt/diskmount RESFILE="${MOUNTDIR}"/openslx.ini -DISPLAY=:0.0 +export DISPLAY=:0.0 check_resolution() { # Now, let's wait even more seconds to see if another process re-changes res.: @@ -73,7 +73,7 @@ fi XAUTHDATEI=$(ps aux | grep -o "X.* \-auth *[^ ]*" | awk '{print $NF}') if [ -n "$XAUTHDATEI" ]; then logger "openslx resolution utility: XAUTHFILE found." - XAUTHORITY="${XAUTHDATEI}" + export XAUTHORITY="${XAUTHDATEI}" else logger "openslx resolution utility: XAUTHFILE not found. Exiting." exit 1 |