X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=865aa251e03b79f3ce3681d7c4f8e4ee2888a6ee;hb=12d3b0a9a2dae8d187318c52465fd262c74b0c85;hp=3bac8fead47e3d5a6f10109927dd17a121249321;hpb=4a2e6c9c42b65ba3612dee047a9593cfa23ab649;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 3bac8fea..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 @@ -515,6 +518,8 @@ if [ -z "$skip_all" ]; then # if the user has sudo root access; we don't want to provide a custom # profile for root. fi + # chop off any email address style formatting to leave just the name. + custom_user="$(echo "$custom_user" | cut -f1 -d'@')" save_terminal_title @@ -543,22 +548,23 @@ we will skip recustomization, but these other customizations are available: # there's an existing link, so remove it. \rm custom fi + # make sure we cleaned up the area before we re-link. if [ -h custom -o -d custom -o -f custom ]; then echo " Due to an over-abundance of caution, we are not going to remove an unexpected -'custom' object in the file system. This is located here: - $(pwd) -and here are the current contents, showing the rogue 'custom' folder:" - ls -al . +'custom' object found in the file system. This object is located in the +feisty meow loading dock here: $(pwd) +And here is a description of the rogue 'custom' object: +" + ls -al custom echo " If you are pretty sure that this is just a remnant of an older approach in -feisty meow, where we copied the custom directory rather than linking it, -and it most likely is just such a bit of cruft of that nature, then please -remove that old remnant item, for example by saying: +feisty meow, where we copied the custom directory rather than linking it +(and it most likely is just such a bit of cruft of that nature), then please +remove that old remnant 'custom' item, for example by saying: /bin/rm -rf \"custom\" ; popd Sorry for the interruption, but we want to make sure this removal wasn't -automatic if there is a small amount of doubt about the issue. -" +automatic if there is even a small amount of doubt about the issue." return 1 fi