Consolidate handling of ~/.xsession-errors

Johan Kiviniemi ubuntu.com-devel at johan.kiviniemi.name
Fri Dec 8 21:45:27 GMT 2006


On Fri, Dec 08, 2006 at 09:20:49PM +0100, Martin Pitt wrote:
> (3) Keep one log per session, and last n logs (like logrotate)

>     - Lots of new files in user's home (cluttering backups, etc.).

The [1]XDG Base Directory spec defines directories where user-specific
data, configuration and cache files should be written. They can be
controlled by env variables, the defaults are:

XDG_DATA_HOME:   ~/.local/share
XDG_CONFIG_HOME: ~/.config
XDG_CACHE_HOME:  ~/.cache

If all programs used them – as if that's ever going to happen ;-) –
there would be basically no clutter. ls -a in the home directory would
be very clean, ls .config would list subdirectories named after
programs. You could hit ctrl-L in the file manager and type .config to
see the list, without having to change the "show hidden files" setting.

Back to the topic: adopting the spec's style, logs could be saved to
~/.local/log. They could be rotated without causing clutter.

[1] http://standards.freedesktop.org/basedir-spec/latest/

-- 
Jοhan Kiviniemi  http://johan.kiviniemi.name/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20061208/5afd8689/attachment.pgp 


More information about the ubuntu-devel mailing list