mjpost / bibsearch

Download, manage, and search a BibTeX database.
Other
63 stars 5 forks source link

XDG spec for config file location #35

Open cl3wis opened 6 years ago

cl3wis commented 6 years ago

(from the guidelines here)

The config could be looked up at these standard locations, in order:

1) $XDG_CONFIG_HOME/bibsearch/config 2) $HOME/.config/bibsearch/config 3) (current) $HOME/.bibsearch/config

Similarly, the lastSearch.yaml, bib.db, and download_dir could live in $XDG_DATA_HOME and/or $XDG_CACHE_HOME.

Thoughts? If the file lookups are done preferentially, it shouldn't break any existing setups.

mjpost commented 6 years ago

I've never heard of this spec; which is not to say that it is wrong, only that this surprises me. If this is a standard I'd be happy to see it in bibsearch. Thoughts, @davvil?

davvil commented 6 years ago

Yes, that's actually the right way to do it. I'll have a go at it.

On Tue, Jun 26, 2018 at 9:01 AM Matt Post notifications@github.com wrote:

I've never heard of this spec; which is not to say that it is wrong, only that this surprises me. If this is a standard I'd be happy to see it in bibsearch. Thoughts, @davvil https://github.com/davvil?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mjpost/bibsearch/issues/35#issuecomment-400201348, or mute the thread https://github.com/notifications/unsubscribe-auth/AApuRQQ-djinwqccghwbA0PLdXGEByBBks5uAdxIgaJpZM4U1Vnl .

cl3wis commented 6 years ago

I'm open to work on this as well.

mjpost commented 6 years ago

You should do it. It’d be nice to have new contributors.

cl3wis commented 6 years ago

Sure, I'll tackle this.

How is (is there any) Windows support for bibsearch?

On Mon, Jul 2, 2018, 11:19 AM Matt Post notifications@github.com wrote:

You should do it. It’d be nice to have new contributors.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mjpost/bibsearch/issues/35#issuecomment-401858273, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1CAKx_QU05XMwgZrQbqClKXF9j02pVks5uCkghgaJpZM4U1Vnl .

mjpost commented 6 years ago

I have not tried it on Windows.