Alternative configuration directory
Bug #628873 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTimeLog |
Fix Released
|
Undecided
|
Barry Warsaw |
Bug Description
It would be nice to be able to specify an alternative configuration directory rather than ~/.gtimelog. One use case I'm considering immediately is to store configuration and logs in an Ubuntu One shared directory. That way, no matter which desktop I'm working on today, I can share my entire history (and don't have to keep copying my config file everywhere).
I have a branch that adds a $GTIMELOG_HOME environment variable to control this. It's a fairly simple patch and I'll link that branch here once I have a bug number.
Related branches
lp:~barry/gtimelog/628873-envar
(Merged)
Changed in gtimelog: | |
status: | New → Triaged |
To post a comment you must log in.
Would you mind changing it to
os.environ. get('GTIMELOG_ HOME') or '~/.gtimelog'
? I think setting $GTIMELOG_HOME to an empty value should be equivalent to not setting it at all, instead of using the current working directory.
I'm going to grant you write access to gtimelog trunk, so you can push this yourself -- assuming I figure out how to do that in Launchpad. I did it once for zodbbrowser, I should be able to figure the confusing UI again....