Closed jtsymon closed 6 years ago
Apparently the PR title doesn't link issues 😞
Thanks!
install.ps1
sounds like a good idea, do you want to try implementing it? I won't be able to test this bit personally, but we have a couple of Windows users, I can ping them.By the way, how come on WSL both windows and linux host applications are needed? Are they both being used? The .bat
file only references the linux host app...
The Windows host application isn't actually needed, but the config files and registry keys are used for the browser to find the host application.
Normally it'd work like
Browser -> Native Messaging config -> Host Application
But this does
Browser -> Native Messaging config (Windows) -> Host Application (Linux)
So we need the config files from the Windows host application (but not the actual host application), and the Linux host application (but not its config files).
Huh, makes sense now, thanks!
Oh I just noticed another problem. My original .bat
file assumes the Linux host application is in ~/browserpass/
, but that actually depends on where the user put the browserpass files when installing the Linux host application. So the .bat
file installed with the Windows host application doesn't actually know where to find the Linux host application.
This could be handled by having install.ps1
also install the Linux version under WSL (behind a prompt or flag), but that could get pretty messy. The cleanest option is probably a separate "WSL" zip that contains the Windows config with the Linux host application and a different install script, but that creates extra maintenance work for very few users.
... so maybe we should scrap the "automatically create the .bat
file" idea, and just say "create a batch file that uses WSL to load the Linux browserpass host application."
Agreed, let's go with a simple option then. If there will be a public demand for automating then, we will revisit :wink:
Add the description of the problem with password-protected key and a known workaround, and let's merge it.
I added the note about password-protected keys, and also added a note about why to use this (hopefully keeps people from accidentally using this when they just want a Windows setup).
Only problem is now its taking up half the README for an edge case setup 😆
That is totally fine, and I don't see it as an edge case, I like the idea behind WSL and I hope it gets better / more widespread in the future 😉
Cool, thanks a lot - merging in a moment.
Moving instructions for working with WSL to README.md. Some stuff to look at:
browserpass-linux.bat
withinstall.ps1
to simplify the instructions? (it can just sit there unused normally)