X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=inline;f=scripts%2Fcore%2Ffunctions.sh;h=865aa251e03b79f3ce3681d7c4f8e4ee2888a6ee;hb=3df024c15c163593486df581e02093fe5d6eb8bd;hp=19e4306c63e890259b94e2a18ca8187e8a91f9bc;hpb=a4173a73d2fced6e8cf8d9914995e5359b29599c;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 19e4306c..865aa251 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -451,6 +451,9 @@ if [ -z "$skip_all" ]; then # label if they're doing an su with the sudo. function sudo() { save_terminal_title + # hoist our X authorization info in case environment is passed along; + # this can allow root to use our display to show Xorg windows. + export IMPORTED_XAUTH="$(xauth list $DISPLAY)" /usr/bin/sudo "$@" retval=$? restore_terminal_title