Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a simple usability problem that I would love to fix. I work quite a bit with gedit as my LaTeX editor (with the excellent LaTeX plugin). I constantly need to work with several files. So, a very common situation for me is to be working on some file (hence gedit is running) when the need to edit another file arises. As Nautilus is easier to navigate than the "Open Dialog" of gedit, I usually open up a new Nautilus window, look for my file, and then double click on it (followed by a "Doh!"). What happens is that a new instance of gedit is started with a single tab of the file I just double clicked on, whereas the expected behavior (from my perspective at least) is that this new file should be opened in a new tab in the already running gedit instance.

So, to my question - is there a way to make it work the way that I prefer?

share|improve this question
Which distro do you use? I run Ubuntu (11.04) and new files are always opened in a already open instance of gedit. – igi May 22 '11 at 0:37

As @igi suggested, its the default behavior for Ubuntu Natty. Otherwise

Open /usr/share/applications/gedit.desktop and make sure the Exec property is equal to gedit --new-document %U

Alternately, you can open your ~/.bash_aliases or ~/.bashrc and add

alias gedit="gedit --new-document"
share|improve this answer
--new-document open a window inside the current instance with a new empty document. – enzotib May 22 '11 at 7:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.