dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

In a Linux environment, command history is saved to /tmp/.local-storage #302

Open tsgautier opened 6 years ago

tsgautier commented 6 years ago

In a multi-user environment, this is a blocker. Multiple users will end up trying to use the same location for their independent uses of vorpal based apps.

At the moment, the .local-storage directory is created with sufficiently restrictive permissions that subsequent users will simply get a permissions problem when trying to start the app.

For an example of a local storage subdirectory done properly, please review the implementation at https://github.com/yeoman/configstore/blob/master/index.js which uses a combination of xdg-basedir and os.tmpdir() to find an appropriate location.