Reset Gnome.
First of all, backup your settings.
mkdir ~/backup_gnome
mkdir ~/backup_gnome/.gnome/
cp -R ~/.gnome/* ~/backup_gnome/.gnome/
Do this with these folders: .gnome, .gnome2, .gconf, .gconfd, .metacity
Another way is to backup ALL of your settings:
mkdir ~/backup_settings
cp -R ~/.* ~/backup_settings/
After making backups, you can delete all gnome settings:
rm -rf .gnome .gnome2 .gconf .gconfd .metacity
WARNING: If you remove all these folders, you essentially remove all the settings.
After resetting gnome, Logout and Login again (or restart your computer). You panels should be restored, now you can edit them again.
I hope this helped you, but try all the answers before mine, because resetting gnome is like reinstalling gnome.
Daniel
Well ,
I had script for resetting the gnome panel .
I am not sure if this script will work on notebook version , i used it in desktop version ,and its very helpful .
save this script to PanelRestore.sh to the desktop for example and chmod +x PanelRestore.sh
and then run it by terminal ./PanelRestore.sh
, a new window will pop up , just click restore default setting and you would be good to go
#!/bin/sh
#
# GNOME Panel Save / Restore
# Writen by PhrankDaChicken
#
# http://ubuntu.online02.com
#
#
# Updated to add restore defaults by jimjimovich
# http://www.starryhope.com
#
#
DIR=$(pwd)
TITLE="PanelRestore"
Main () {
CHOICE=$(zenity --list --title "$TITLE" --hide-column 1 --text "What do you want to do?" --column "" --column "" \
"0" "Save Panel Settings" \
"1" "Restore Panel Settings" \
"2" "Restore Default Panel Settings")
if [ $CHOICE = 0 ]; then
Panel_Save
fi
if [ $CHOICE = 1 ]; then
Panel_Restore
fi
if [ $CHOICE = 2 ]; then
Panel_Defaults
fi
}
Panel_Restore () {
FILE=$(zenity --title "$TITLE: Open File" --file-selection --file-filter "*.xml" )
if [ -n "$FILE" ]; then
gconftool-2 --load "$FILE"
killall gnome-panel
fi
Main
}
Panel_Save () {
FILE=$(zenity --title "$TITLE: Save File" --file-selection --save --confirm-overwrite --filename "Gnome_Panel.xml" --file-filter "*.xml" )
if [ -n "$FILE" ]; then
EXT=$(echo "$FILE" | grep "xml")
if [ "$EXT" = "" ]; then
FILE="$FILE.xml"
fi
gconftool-2 --dump /apps/panel > $FILE
zenity --info --title "$TITLE: File Saved" --text "File saved as: \n $FILE"
fi
Main
}
Panel_Defaults () {
zenity --question --text="Are you sure you want to restore the default top and bottom panels?"
gconftool-2 --recursive-unset /apps/panel
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
exit
}
Main
# END OF Script
Best Answer
I haven't used gnome for a while, but I used to do that with gconf-editor.
Open "desktop >> gnome >> session >> required_components", then double-click the "panel" option, then remove the "gnome-panel" value and close it, then just:
killall gnome-panel
Last time I used this method was with Karmic tho.