well because is we can figure out which env variable is not yet set we can add a while loop at the beginning of the launching script in order to wait for this variable to be set.
I tried with
while [ -z "$HOME" ]; do
echo "waiting"> /dev/null
done
...or...
while [ "$HOME" = "" ]; do
echo "waiting"> /dev/null
done
well because is we can figure out which env variable is not yet set we can add a while loop at the beginning of the launching script in order to wait for this variable to be set.
I tried with
while [ -z "$HOME" ]; do
echo "waiting"> /dev/null
done
...or...
while [ "$HOME" = "" ]; do
echo "waiting"> /dev/null
done
But it does not work as $HOME is already set.