randomly opens file in new window instead of new tab

Bug #747761 reported by Teo
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Confirmed
Low
Unassigned

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

Revision history for this message
Teo (teo1978) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, does it depend of it you have a gedit dialog on the same workspace or not?

Changed in gedit (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Teo (teo1978) wrote :

I'm not sure I understand your question.

I start without any gedit window open.

First time I double click on a file, it obviously opens a new gedit window and opens the file in it.

Then i double click on another file. Now obviously I do have a gedit window already open (in the same workspace). So it usually opens the new file in a new tab of the existing gedit window.
I repeat the same step and usually, all files are opened in new tabs of the same existing gedit window.

But at random time (this may happen even at the second file I open, or after having opened several ones), the file is opened in a new gedit window.

All this within only one workspace, with no windows (not only no gedit window, no windows at all) in any other workspace.

Changed in gedit (Ubuntu):
status: Incomplete → New
Revision history for this message
Teo (teo1978) wrote :

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)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit (Ubuntu):
status: New → Confirmed
Revision history for this message
Bruno Pereira (brunopereira81) wrote :

This behavior happens with me all the time, if I drag a window to the bottom right corner of the screen and try to open a new file, instead of a new tab on the current window I get a new window.

Using Ubuntu 11.10, gedit 3.2.1, Ubuntu3D desktop with no changes done on ccsm, this is a fresh install.

Revision history for this message
Doug McMahon (mc3man) wrote :

What is seen here is that this only occurs when the window extends off of the bottom of the Ws, not the L,R sides, (or the top though that needs to be forced

Unfortunately, at least with recent compiz, windows can 'slide' at bit at times without any user initiated moving of the window, usualy from switching Ws's or expo

Revision history for this message
Teo (teo1978) wrote :

@Doug, NO, it occurs also when the window extends off the right or left or top of the screen, not only bottom, at least hear.

Additionally, it also systematically happens when there is an existing EMPTY gedit window completely within the screen with no files already open.

Still an issue in Ubuntu 11.10

I don't know whether the desktop system or gedit itself is at fault, but I haven't observed it on other apps. I tried with Google Chrome (opening html files from disk) and it behaves as expected. So i guess it is gedit.

Revision history for this message
Teo (teo1978) wrote :

(typo I meant "at least here", not "at least hear")

Revision history for this message
Tchalvak (tchalvak) wrote :

Same kind of problem in Ubuntu Netbook remix running 11.04.

Revision history for this message
Teo (teo1978) wrote :

I think the duplicate status is wrong.
Read the description of bug #777292 and read the description of this one particularly comment 4: seems a completely different issue.

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Bug #777292 is about Gedit running another instance - this might cause a sync bug https://bugzilla.gnome.org/show_bug.cgi?id=664646, so, I suppose, all 'new GEdit instance' bugs should be marked as duplicte to #777292

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.