Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Introduce a config option for the Crane directory location #176

Open
Etenil opened this issue Oct 6, 2016 · 4 comments
Open

Introduce a config option for the Crane directory location #176

Etenil opened this issue Oct 6, 2016 · 4 comments

Comments

@Etenil
Copy link

Etenil commented Oct 6, 2016

On Linux, Crane creates a Crane directory in the user's folder where it stores its (indexing?) data. Because this isn't a hidden folder and its location cannot be changed, it is both surprising and possibly undesirable.

Please add a configuration option to move it elsewhere, or just change it to be a hidden folder .Crane.

Thanks

@nevadascout nevadascout added this to the 0.3.0 milestone Oct 6, 2016
@TheColorRed
Copy link
Contributor

I have introduced this in PR #181.

It will place the directory at: $HOME/.Crane. When this becomes available you can either rename the directory, or just delete it and let crane do its thing to rebuild stuff upon request.

@MelleB
Copy link

MelleB commented Mar 7, 2017

Please don't litter users' home folder with an extra config file.
It's good convention to use he $XDG_CONFIG_HOME and $XDG_DATA_HOME variables for linux users (not sure about mac users?).
For more info see https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
Other interesting discussion: microsoft/vscode#3884

@nevadascout nevadascout modified the milestones: 0.3.2, 1.0-placeholder Mar 7, 2017
@ichiriac
Copy link
Collaborator

ichiriac commented Mar 7, 2017

Cross platform command would be require('os').homedir() / see https://nodejs.org/api/os.html#os_os_homedir

Also would be cool if the name of crane directory would be prefixed with a point, .crane as it would be masked and considered as a system folder on many OS.

@nevadascout nevadascout modified the milestones: 0.3.3, 0.3.2, 0.4-placeholder Mar 8, 2017
@MelleB
Copy link

MelleB commented Mar 12, 2017

@ichiriac I think it'd be better to use https://www.npmjs.com/package/xdg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants