gnome-cleanup revision 15615
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"