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 310843 - Remember location where a file was last opened from across restarts.
Remember location where a file was last opened from across restarts.
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: general
0.94
Other All
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
: 584756 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-19 07:41 UTC by Chris Hellberg
Modified: 2019-03-20 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make open dialog current directory persistent accross application restarts (2.68 KB, patch)
2009-10-01 01:34 UTC, Jader Henrique da Silva
reviewed Details | Review

Description Chris Hellberg 2005-07-19 07:41:03 UTC
When you open a file with Dia, it remembers your location in the directory where
you opened that file. So when you come to load another file, you start off in
your last location. This is good.

It would be handy to extend this functionality to persist the last-opened
location across application restarts.
Comment 1 Marc-Andre Lureau 2006-04-16 00:21:39 UTC
it should be simply  a matter of some persistence_set_string() calls...

Is this a consistent consistent way of showing open dialog accros gnome ? (think of gedit or gimp...)

Comment 2 Hans Breuer 2009-06-03 19:22:53 UTC
*** Bug 584756 has been marked as a duplicate of this bug. ***
Comment 3 Jader Henrique da Silva 2009-10-01 01:34:36 UTC
Created attachment 144451 [details] [review]
Make open dialog current directory persistent accross application restarts
Comment 4 Jader Henrique da Silva 2009-10-01 01:35:08 UTC
Comment on attachment 144451 [details] [review]
Make open dialog current directory persistent accross application restarts

Patch is attached
Comment 5 Hans Breuer 2009-10-06 19:51:58 UTC
Without the patch the folder of the current diagram gets used. 
With the patch it is always the last one used. 

I think it would be better to keep the previous behaviour and only fall back to the last-used-dir when there are no other options. (May be just removing the else from line 297, but untested.)
Also it might be desired to use the file-chooser-last-directory for the save/export case, probably with the same exception as above.
Comment 6 GNOME Infrastructure Team 2019-03-20 11:21:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/147.