From ca94c70d924cab3e74f26fba503fcc7acb947b64 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Wed, 8 Feb 2017 18:42:20 +0100 Subject: [run-virt] resolution scripts: Added two exports (seem to be missing sometimes; Linux Mint whined) --- .../modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution | 4 ++-- .../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 -- cgit v1.2.3-55-g7522