"Untitle Document" opens when opening a document using `gksu[do] gedit /path/to/file"`.

Bug #890041 reported by Derek White
50
This bug affects 12 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ gedit # opens untitled document
$ gedit /path/to/file # opens file
$ sudo gedit /path/to/file # opens file
$ gksu gedit /path/to/file # opens file & untitled document
$ gksudo gedit /path/to/file # opens file & untitled document

The "Untitled Document" should only be opened when no file is provided, according to `man gedit`.

Additionally, when "Untitled Document" is opened unexpectedly via gksu[do], its tab icon is shown as the rotating "loading" icon. Occasionally the icon will stop "spinning", when the tab is focused/un-focused it will continue spinning, until it freezes again. On the other had, when I expect "Untitled Document" to be opened (e.g. `gedit`), its tab icon is the proper "plain-text" icon.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gedit 3.2.1-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 880f1cef728a67d1a58407cc143447d4
CheckboxSystem: 4ed15c40009aa6f7770f606350a390a2
Date: Sun Nov 13 21:07:37 2011
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
SourcePackage: gedit
UpgradeStatus: Upgraded to oneiric on 2011-11-04 (9 days ago)

Revision history for this message
Derek White (d-man97) wrote :
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
John Goold (jrgpublic) wrote :

This happens without having to run as root. I expect it affects thousands of people, not the handful that have logged in here and clicked the link.

I've just switched to the latest Ubuntu from Mac OS X "Lion":
    Ubuntu 11.10 (oneiric)
    Gnome 2.32.1
    Kernel 3.0.0-16-generic

gedit reports its release (under Help->About): 3.2.3

I regularly apply ALL updates to my machine.

While the editor is functional (so far, it's the closest I can find to BBEdit -- I had the paid-for version), those extra tabs are incredibly annoying (especially if they mean gedit is consuming extra resources).

Revision history for this message
andrew@drup.org (andrew-drup) wrote :

When opening gedit from dolphin you can fix this annoying problem by modifying the line that lauches the program. Change:
gedit %U
into:
gedit %U < /dev/null

A similar fix for launching from the command line is discussed here:
http://ubuntuforums.org/showthread.php?t=2029114

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.