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 310721 - Don't create ~/.recently-used during first login
Don't create ~/.recently-used during first login
Status: RESOLVED FIXED
Product: libegg
Classification: Other
Component: recent-files
unspecified
Other Linux
: High normal
: ---
Assigned To: Emmanuele Bassi (:ebassi)
Libegg maintenance
Depends on:
Blocks:
 
 
Reported: 2005-07-18 10:19 UTC by Mark McLoughlin
Modified: 2005-07-20 07:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
egg-recent-dont-create-file-at-first-login.patch (2.27 KB, patch)
2005-07-18 10:20 UTC, Mark McLoughlin
none Details | Review

Description Mark McLoughlin 2005-07-18 10:19:24 UTC
If you start a prototype session using Sabayon
(http://www.gnome.org/projects/sabayon) you see that an empty ~/.recently-used
file is created as the session starts up.

The reason for this is that EggRecentModel always creates an ~/.recently-used if
it doesn't exist ... even when nothing is to be written to the file.

Attaching patch which makes EggRecentModel only create the file when it is
actually going to write to it.
Comment 1 Mark McLoughlin 2005-07-18 10:20:50 UTC
Created attachment 49344 [details] [review]
egg-recent-dont-create-file-at-first-login.patch
Comment 2 Emmanuele Bassi (:ebassi) 2005-07-20 07:32:15 UTC
2005-07-20  Emmanuele Bassi <ebassi@cvs.gnome.org>

	* libegg/recent-files/egg-recent-model.c:
	(egg_recent_model_open_file), (egg_recent_model_add_full),
	(egg_recent_model_delete), (egg_recent_model_get_list),
	(egg_recent_model_clear), (egg_recent_model_remove_expired):

	If the .recently-used file is missing, create it only when accessing it
	for writing (Closes bug #310721).