1. Open terminal
2. Run the command: $ echo 'gtk-icon-theme-name="Tango"' >> ~/.gtkrc-2.0
3. Run the command: $ sudo apt-get install tango-icon-theme
4. Close terminal
5. Create a new text file on your desktop eg: random.txt
6. Double click on random.txt
Problem solved. Now you should be able to run Gedit by double clicking on a file or from the command line ( $ gedit random.txt ) with no problems.
My Gedit was crashing on startup and giving the following error:-
Gtk:ERROR: /build/ buildd/ gtk+2.0- 2.24.20/ gtk/gtkrecentma nager.c: 2116:get_ icon_fallback: assertion failed: (retval != NULL)
Aborted
I fixed this by following these steps
1. Open terminal theme-name= "Tango" ' >> ~/.gtkrc-2.0
2. Run the command: $ echo 'gtk-icon-
3. Run the command: $ sudo apt-get install tango-icon-theme
4. Close terminal
5. Create a new text file on your desktop eg: random.txt
6. Double click on random.txt
Problem solved. Now you should be able to run Gedit by double clicking on a file or from the command line ( $ gedit random.txt ) with no problems.