11990N/A# Cleans up the GNOME Desktop user configuration files. This 11990N/A# will return the user to the default desktop configuration. 11990N/A# Useful if the user's configuration has become corrupted. 2920N/A# By: Brian Cameron <Brian.Cameron@sun.com> 11990N/A# The first argument can be a user name. If so, then the script 11990N/A# will clean up the files for that specified user (if file 11990N/A# permissions permit). If no argument is given, the default value 11990N/A# Error if the directory for this user does not exist. 11990N/A# If USRHOME is the root directory, just set USRHOME to nothing 11990N/A# to avoid double-slash in the output since we refer to files 11990N/A# as $USRHOME/.gconf, for example. 2920N/A# Check if GNOME is running: 15615N/A echo "\nError getting user process information for user <$LOGNAME>...\n" 15615N/A echo "\nThe following GNOME processes are still running for user <$LOGNAME>:\n" 15615N/A echo "\nPlease log out user <$LOGNAME> from GNOME, so this user has no" 11990N/A echo "GNOME processes running before using gnome-cleanup. For example," 11990N/A echo "log out, and log into a failsafe session to run gnome-cleanup." 15615N/A# Use disp_files to echo files back to the screen so that we don't expand 15615N/A# "tmp" wildcard directories like gvfs-${LOGNAME}, otherwise the output 15615N/A# is cumbersome to read since this will echo dozens of files to the screen. 15615N/A echo "\nUser <$LOGNAME> currently has the following GNOME configuration files:" 15615N/A echo "\nDo you wish to remove these files (Y/N) \c" 15676N/A echo "\nThe files removed from the user \$HOME directory have been" 15676N/A echo "backed up to the following file:" 15676N/A echo "\nIf you ran this program to resolve an issue that was caused" 15676N/A echo "by the GNOME desktop not functioning properly, then please" 15676N/A echo "\nNote that configuration files may contain sensitive" 15676N/A echo "information about you. If this is a concern, then it is best" 15676N/A echo "to not attach this tar file to a publicly visible bug report." 15676N/A echo "If this is not an issue, then attaching this file would likely" 15676N/A echo "help to debug the problem. Also note that files in the /tmp" 15676N/A echo "directory are removed automatically on reboot, so move this" 15676N/A echo "file to a more permanent location if you want to save it for" 15676N/A echo "reference or future use."