Ok I got it! This happens systematically when part (even a small part) of the currently open window exceeds the screen in any direction (including the bottom). Then any file you open from nautilus is opened in a new gedit window.
Only if the currently open gedit window is ENTIRELY inside the current screen does it open a new file as new tab in the existing window. Can anybody please confirm the bug and change the status to "confirmed"? (i guess it's not good practice to confirm one's own bugs) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/747761 Title: randomly opens file in new window instead of new tab Status in “gedit” package in Ubuntu: New Bug description: Binary package hint: gedit Steps to reproduce: 1) Navigate to some folder with Nautilus 2) Double click on a text file (or right click - open with "gedit") 3) Double click on some other text file 4) And so on Expected behaviour: Every new file should be opened in a new tab of the same gedit window. Or it may be acceptable that every new file would _always_ be opened in a new gedit window. Best would be to be able to configure this in the preferences Observed behaviour: Usually the new file is opened in a new tab of the same gedit window. At random times however, the new file is opened in a new gedit window even if there is already another gedit window open. There doesn't seem to be a logic: it does not depend for example on the number of files already open. It seems to be random. ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: gedit 2.30.3-0ubuntu0.1 ProcVersionSignature: Ubuntu 2.6.32-30.59-generic 2.6.32.29+drm33.13 Uname: Linux 2.6.32-30-generic i686 NonfreeKernelModules: nvidia Architecture: i386 Date: Fri Apr 1 22:33:32 2011 InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429) ProcEnviron: PATH=(custom, no user) LANG=en_US.utf8 SHELL=/bin/bash SourcePackage: gedit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/747761/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

