X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Flaunch_feisty_meow.sh;h=913f82b43b2ac6c53273ecb2caa368799d5d21cf;hb=bc4b351c874f6b2ebe12c6965e75ce676cf2a8cc;hp=55b30a8696d7b3303a0c911acbc51c7c13566e1d;hpb=92a4e318ab6ea30752f5e058757b47352c3ef617;p=feisty_meow.git diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index 55b30a86..913f82b4 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -19,7 +19,7 @@ ############## # this script cannot handle figuring out where it lives, so approaches that -# get the WORKDIR will fail. this is a consequence of this always being used +# get the THISDIR will fail. this is a consequence of this always being used # in bash's 'source' directive, which does not pass the script name as # argument 0. instead, we just check for the bad condition of a malconfigured # script system and try to repair it. @@ -92,6 +92,13 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then if [ -z "$USER" -a ! -z "$CRONUSER" ]; then export USER="$CRONUSER" fi + + # use the xauth info if we were given one in the environment. + # this allows root or other su'd identities to create windows with same + # display variable. + if [ ! -z "$DISPLAY" -a ! -z "$IMPORTED_XAUTH" ]; then + xauth add $IMPORTED_XAUTH + fi ############## @@ -217,8 +224,9 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then # only run this hello file if the core feisty meow support haven't been loaded already. this # hopefully guarantees we show the info at most once in one shell continuum. + # this can also be disabled if the NO_HELLO variable has a non-empty value. type CORE_VARIABLES_LOADED &>/dev/null - if [ $? -ne 0 ]; then + if [ $? -ne 0 -a -z "$NO_HELLO" ]; then # print out a personalized hello file if we find one. if [ -f ~/hello.txt ]; then echo @@ -227,6 +235,8 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then sep 28 echo fi + # from now on there should be no extra helloing. + export NO_HELLO=true fi # load the last bits we do here.