buttercup / buttercup-desktop

:key: Cross-Platform Passwords & Secrets Vault
https://buttercup.pw
GNU General Public License v3.0
4.29k stars 329 forks source link

Flag for configuration location #655

Open nickbe opened 6 years ago

nickbe commented 6 years ago

I'd like to keep the buttercup installation on a usb stick. Buttercup seems to evaluate the APPDATA environment variable and store its configuration folder there.

So it's usually enough to use the following batch from within the buttercup folder when I want to keep my configuration folder also local,

@echo off
set APPDATA=%CD%\data
mkdir %CD%\data
buttercup.exe

Curiously enough it even worked ONCE, but after that buttercup always uses the original appdata folder. Is there another way to set the data folder like buttercup.exe --config=%cd%\datafolder ?

perry-mitchell commented 6 years ago

This is a really good point, and I'll admit I haven't toyed with portability myself yet. I would definitely regard it as a higher-than-average priority. Any ideas about this particular workaround @sallar?

We had planned to release a purely portable version (#429), but that hasn't taken root yet.

nickbe commented 6 years ago

Well it IS rather simple for windows. Since you're writing the data to the APPDATA folder, the only question is: how do you get the APPDATA path in the first place? If you switch to evaluating the APPDATA environment variable the the batch above would just work fine and we'd have a portable version very easily 😁

perry-mitchell commented 6 years ago

I've accepted this as an issue, as it would be a great feature to have. I currently don't have time to implement right now but PRs are welcome.