gedit doesn't notice that a file has been renamed

Bug #132788 reported by Till Ulen on 2007-08-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)

Bug Description

Binary package hint: gedit

When you edit a file in gedit and the file is renamed, gedit doesn't notice that the file on disk has disappeared. Instead, when trying to save a file that has been renamed, a warning should appear, similar to the yellow warning bar that appears when a file content has been modified by another program.

Steps to reproduce the problem:

1. Open a new file in gedit. Save it to ~/foobar
2. Rename the file ~/foobar to ~/
3. Modify the file inside gedit (this step can be omitted)
4. Press the Save button

A new file ~/foobar is silently written. No indication is given to the user that the file was not there when saving.

Expected behavior:

Show a warning that the file has been renamed, moved, or deleted. Ask the user whether she really wants to save the file under the old name (to the old location). Better yet, determine what exactly happened to the file (was it renamed, moved, or deleted). If the file has been moved or renamed, suggest to save the file in the new location or under the new name, respectively.

ProblemType: Bug
Architecture: i386
Date: Thu Aug 16 00:52:51 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.18.1-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gedit
ProcCwd: /home/users/alexkon
SourcePackage: gedit
Uname: Linux chronos 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux

Till Ulen (tillulen) wrote :
Till Ulen (tillulen) on 2007-08-15
description: updated
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here:

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in gedit:
status: Unknown → New
Changed in gedit:
importance: Unknown → Medium
Changed in gedit:
status: New → Confirmed
Changed in gedit:
importance: Medium → Wishlist
Pirasath (pirasath-krishna) wrote :


We are 4 French students (University Paris 8) and we have to fix bugs on open source software for a class.
We searched among different bugs and softwares and this bug in gedit interested us. So we decided to work on it, hopefully fix it.

Karim, Pirasath, Naijidat, Thanushan.

Sebastien Bacher (seb128) wrote :


Good to read, there is patch on the GNOME bugzilla page that might be useful as a start

Changed in gedit (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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