gedit opens unnecessary blank document when used to open a file as root

Bug #880038 reported by Eliah Kagan on 2011-10-22
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Undecided
Unassigned

Bug Description

On a fully updated Precise i386 system (obtained by replacing oneiric with precise in sources.list, dist-upgrading, and rebooting) with gedit 3.2.1-0ubuntu1, I created a test file and opened it in gedit:

ek@Gnar:~$ echo test > foo
ek@Gnar:~$ gedit foo

This behaved exactly as expected. Then I quit gedit and opened the file in gedit as root:

ek@Gnar:~$ gksu gedit foo

This opened the file, but opened a new untitled document as well, as shown in the attached screenshot.

This also happens on Oneiric (same gedit version, test machine amd64).

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gedit 3.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.1.0-1.1-generic 3.1.0-rc10
Uname: Linux 3.1.0-1-generic i686
ApportVersion: 1.24-0ubuntu1
Architecture: i386
Date: Sat Oct 22 13:51:01 2011
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)

Launchpad Janitor (janitor) wrote :

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

Changed in gedit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers