X Tutup
Skip to content

Use XDG_CONFIG_HOME #91

@ikanobori

Description

@ikanobori

Having a lot of dotfiles in ~ can get really annoying. It'd be nice to see bpython use freedesktop's XDG specification for configuration files etc. (see http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html).

===== =====

Freedesktop.org offers a python library for easy XDG integration (http://www.freedesktop.org/wiki/Software/pyxdg), but since it isn't available on PyPI and the requirement is only small, it might be wiser just to handle it manually.

====== ======

I took a look at the code this morning and changed everything which ack told me pertained to finding the config file. I put my diffs on bpaste and I'll link them here. I doubt they'll be perfect, but it's a start at least.

= =

args.py -- http://bpaste.net/raw/2056/
= =
config.py -- http://bpaste.net/raw/2055/
= =
cli.py -- http://bpaste.net/raw/2060/


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup