After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309186 - gedit file dialog doesn't remember the "current directory"
gedit file dialog doesn't remember the "current directory"
Status: RESOLVED NOTABUG
Product: gedit
Classification: Applications
Component: general
2.10.x
Other Linux
: Normal normal
: 2.12.0
Assigned To: Gedit maintainers
gedit QA volunteers
evolution[folders]
Depends on:
Blocks:
 
 
Reported: 2005-06-30 05:56 UTC by Timo Saarinen
Modified: 2005-08-24 17:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Timo Saarinen 2005-06-30 05:56:41 UTC
Distribution/Version: Ubuntu 4.10

When you open file with gedit and select file from the project directory and
then open file dialog again to open another file from the same directory as the
last file the file dialog shows you your home directory, not the last directory
where the previous file was opened.
Comment 1 Paolo Maggi 2005-07-21 17:28:17 UTC
hmmm... are you sure?
I cannot reproduce it?

The algorithm gedit implements is the following:
- if the current tab contains a local file then open the file selector with the
same directory of the current file
- if the current tab contains an untitled or remote document then open the file
selector with the same directory of the last local file you opened.

Can you confirm your gedit works in the way I described?
Comment 2 Paolo Borelli 2005-07-25 10:18:02 UTC
I can't reproduce either... the file chooser opens in the dir of the current
file or, if the file is untitled or remote, in the last opened dir.
Comment 3 Timo Saarinen 2005-07-26 17:42:29 UTC
This bug can be closed because it's not reproducable. Look rather #311628 which
points the correct problem. Sorry for misinformation.
Comment 4 Timo Saarinen 2005-08-12 12:34:31 UTC
I reopened this bug since there seems to be way to reproduce it.

1. Open GEdit
2. Open file using GNOME-VFS (SFTP)
3. Try to open a new file and the current directory is not same as in step 2

Also, why does file opened with SFTP show in read-only mode even if it's writable?

Comment 5 Paolo Maggi 2005-08-24 17:17:39 UTC
As I wrote in comment #1, gedit remembers the directory of the current file only
for local files.
This is a desired behavior since in many cases you don't have the rights to
browse a remote directory (for example when using the http protocol) and also
because opening a remote directory could be a slow operation.

Note that current version of gedit does not support editing of remote files.

Re-closing as NOTABUG