Ubuntu 12.10, gedit 3.6.1

This won't work:

gconftool-2 --type int --set /apps/gedit- /preferences/ui/recents/max_recents 30

Modifying this file as root won't work either:

cat /usr/share/glib-2.0/schemas/org.gnome.gedit.gschema.xml |grep rece -C 1

EDIT: there is nothing at gconf-editor either.

Is it hard coded? In order to increase the number of recent files in gedit from its default of 5 will I need to find, "fix" and recompile gedit with the answer here?

  • I only use geany now btw :> Jan 10, 2021 at 2:05

4 Answers 4


Using the dconf-editor, this value can be found in the schema under org.gnome.gedit.preferences.ui. The value that you want to change is called max.recents.

dconf-editor can be installed from USC here:

Install via the software center

or from a command line using: sudo apt-get install dconf-tools

  • 1
    worked thanks! btw, about all these configuration tools, this is so confuse, we have gconf-editor, dconf-editor, gconftool-2, I think there is more also.. would be easier if they made something unified like linux-regedit... Jun 17, 2013 at 14:13
  • 2
    @AquariusPower please no regedit! I agree on "unified tool", but regedit is not the way to go :D Sep 30, 2016 at 10:02
  • @Zelphir my bad choice of words, you are right lol! Oct 5, 2016 at 5:59

There exists as well a possibility to achieve this without installing additional software:

dconf write /org/gnome/gedit/preferences/ui/max-recents "uint32 10"


gsettings set org.gnome.gedit.preferences.ui max-recents "uint32 10"
  • Sorry there was a typo: gsettings set org.gnome.gedit.preferences.ui max-recents "uint32 10"
    – becke-ch
    Oct 16, 2014 at 10:17
  • Welcome to AU! You can edit your answers (and questions) if you feel they're incorrect or incomplete. Oct 16, 2014 at 10:40
  • Using gsettings, i don't get this to work. Although I can set the parameter, gedit still only shows 5 recent files! Dec 12, 2014 at 10:23
  • @RobinManoli Did you restart the application when you tried? Anyway, the question would be, how one figures that config string out with no graphical interface to list all available string continuation options at each level. Sep 30, 2016 at 10:04
  • For Pluma (Gedit fork): gsettings set org.mate.pluma max-recents "uint32 10" Apr 30, 2022 at 14:47

I tried the dconf-editor (see first answer on this page) on 32-bit Ubuntu 12.04 LTS and it worked without a hitch. The steps include:

  1. In terminal: sudo apt-get install dconf-tools
  2. In dash, find and launch dconf Editor
  3. In dconf Editor left pane, expand org -> gnome -> gedit -> preferences
  4. In dconf Editor left pane, select ui
  5. In dconf Editor right pane, double-click the value next to 'max-recents'
  6. Type new value (I entered 20).
  7. Press Enter
  8. Close Configuration Editor.

Cant make recent files higher than 10 anymore. Use gedit-plugins and enable Quick Open workaround described below:

Can't increase the number of recent documents in gedit

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .