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