Enable line numbers in gedit

It should be there in the Edit, Preferences dialog!

enter image description here

And this is gedit version 3.8.3


There has been a similar issue reported over at ubuntuforums.org. The problem apparently arose when Unity's global menu was removed (by sudo apt-get remove indicator-appmenu). The solution involves using dconf editor to restore menu items or restoring the global menu.


If you've removed indicator-appmenu to remove global menus then either

  1. Reinstall indicator-appmenu or

  2. run this command (one long line):

    gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": <int32 0>}'
    

    (If the above doesn't copy as a single line, this code box here will work).

If you've edited gedit.desktop to add an env to keep menus in their window then remove the env, typically env UBUNTU_MENUPROXY=.

As an aside: if one wanted the app menu present in a root nautilus browser then removing indicator-appmenu and running the above from a root prompt will achieve that.

Example:

sudo -i
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": <int32 0>}'

I'm not sure if this is specific to gnome users, but I was able to get to the preferences by clicking up the top, like this:

enter image description here

Tags:

Gedit

13.10