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 412755 - Metacity doesn't clean old session files
Metacity doesn't clean old session files
Status: RESOLVED OBSOLETE
Product: metacity
Classification: Other
Component: general
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2007-02-27 19:51 UTC by Frederic Crozat
Modified: 2020-11-06 20:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frederic Crozat 2007-02-27 19:51:18 UTC
While cleaning my harddrive, I discovered ~/.metacity/sessions was containing 3389 files, for a total size of 14MB.

I think Metacity should try to clean older files (some are from 2002 !!), maybe those older than one year.
Comment 1 Havoc Pennington 2007-02-27 20:52:27 UTC
the session manager is responsible for this, though the way it's defined in the XSMP specification makes it almost impossible to get right (one of many ways in which XSMP is totally broken)

there could be a metacity bug but it's probably just a general session management thing.

Comment 2 Thomas Thurman 2008-10-01 19:39:38 UTC
How about, when Metacity starts up, it deletes all session files except the oldest (say) four?

I agree about the brokenness of XSMP, but everyone will hate us if we turn it off :/
Comment 3 Havoc Pennington 2008-10-02 15:23:09 UTC
I wasn't saying to turn it off, the point is that gnome-session is supposed to be running the command to delete the files, in theory. gnome-session is probably broken. Not sure it's possible to implement this part of xsmp correctly.

Deleting old files would surely be fine in practice, though in theory it's wrong.
Comment 4 Mehdi 2009-02-21 14:04:20 UTC
I noticed that almost saved files are empty. 98% of them contain only:

<metacity_session id="11xxxxxxxxx">
</metacity_session>

Could this be avoided?
Comment 5 Alexander Todorov 2009-07-24 10:47:35 UTC
Since March  2007 till now I found nearly 1500 of these files in my .metacity/sessions and session autosave is not even enabled. 

Can gnome-session remove them on startup or never write them down if autosave is not enabled? As in comment #4 almost all of the files are empty.
Comment 6 Fab 2009-09-05 11:16:36 UTC
Bump. Confirmed on gentoo with metacity-2.24.0-r2 and gnome-session-2.22.3-r1.
Is there any progress with newer versions ?
Comment 7 André Klapper 2020-11-06 20:05:23 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/metacity/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.