1password-client icon indicating copy to clipboard operation
1password-client copied to clipboard

Windows support

Open EhsanKia opened this issue 5 years ago • 15 comments

I wonder if anyone has gotten this working on a windows system. It seems to rely on an .rcfile to work, which is not available on windows based systems.

First it complained about missing environ['HOME'], but I set that and then it complains about not finding a shell rc file. It seems like it's used to managed the OP_SESSION key, it may be nice to have a way for the user to just provide the session value manually maybe?

EhsanKia avatar Jan 09 '21 04:01 EhsanKia

That would be great! If you want to submit a PR but make sure it's backwards compatible (there is some platform detection in there) ... We are unable to develop and test this on Windows currently but would welcome any contribution for it

dtpryce avatar Jan 09 '21 09:01 dtpryce

Ok I was able to try some stuff out on my partners Win10 laptop and think we can make something work, but won't be very soon. @EhsanKia would you like to help / test it when we do? Will probably be a simple:

  • download
  • install
  • move to PATH
  • and then the rest should be fine (still need to check how Python on Windows uses Powershell)

Keep your eyes peeled for now or if you make any progress yourself respond here!

dtpryce avatar Jan 10 '21 21:01 dtpryce

I'd be happy to help test, I can also contribute if you can give a few pointers.

EhsanKia avatar Jan 12 '21 03:01 EhsanKia

Ok we have a ticket in our JIRA board but unlikely to get there in next few weeks but will be in contact when we do. If you do develop something yourself we can help too.

dtpryce avatar Jan 19 '21 09:01 dtpryce

Just as an update here ... we have estimated this as quite complex since we don't have a Windows development environment, so we won't be able to get to this quickly. But we will in time - we have an environment on the way ;).

dtpryce avatar Mar 10 '21 17:03 dtpryce

Further update ... we had issues with a more recent version of op which are now fixed in MacOS and Linux. Windows environment is still on the way, but hoping to get to it soon or just borrow a Windows machine from someone.

dtpryce avatar Apr 09 '21 15:04 dtpryce

Thank you for the regular updates :)

EhsanKia avatar Apr 09 '21 16:04 EhsanKia

Another one for you :) so we went down the VM route and got one working and fell down the hole of environment variables on Windows 🤦🏼 however we have decided to go with using chocolatey to help us install the op cli and then we only have to update the client to handle Windows potentially.

@EhsanKia The question that raises, to install the package manager needs to be done using administrative shell, is this ok from a UX perspective? I imagine it would mean pip install would also need to be run in this mode.

More details here: https://chocolatey.org/install

dtpryce avatar Apr 22 '21 13:04 dtpryce

I think that's fair if install is required. though would the package still work if op is already installed and properly setup to work in shell, with check_install_required(): returning true?

EhsanKia avatar Apr 24 '21 16:04 EhsanKia

Right now I'm not sure it would since with other platforms it uses the bash profile. Will have to leverage the powershell PS1 profile I think to get the client working / find another library for Windows specific profiles - we shall see.

dtpryce avatar Apr 27 '21 22:04 dtpryce

Sorry we haven't got round to this ... some other bugs with existing platforms and our release pipeline have to take priority I am afraid. I am hoping to get round to Windows sometime in this quarter though!

dtpryce avatar Jul 02 '21 16:07 dtpryce

Well I definitely miss estimated this by a long shot, our previous company was acquired and a lot has got ahead of this lib. Sorry @EhsanKia ... if you want to go ahead and try it yourself go ahead, we had some great initial ideas!

dtpryce avatar Mar 21 '22 13:03 dtpryce

Hey @EhsanKia as you might have seen we have just released 1.0.1 which supports v2 and within the new cli there is much more windows support. We have started a windows branch to add this support proper within our client - it's coming. We have fully tested the installation which should work if you can run pip as as admin and have setup Windows Hello. We still want to double check that the client works fully and then will add the windows updates.

dtpryce avatar Aug 03 '23 10:08 dtpryce

Hi folks - as a quick intro, avid user of this 1P-client on a Mac, however, we have a Windows user (I have 0% knowledge of this OS), hence my renewed interest!

Tried emailing you @dtpryce however came across this; any update on progress w/Windows compatibility/testing. Happy to contribute to testing!

SaltireSequence avatar Jan 21 '25 07:01 SaltireSequence

hey @SaltireSequence I just responded (I think) and similarly have very little knowledge of the OS hence our struggle at getting it supported. We do have the v2-windows branch which was a past attempt but not sure it works at all. Please do branch that and see how it goes.

dtpryce avatar Jan 21 '25 10:01 dtpryce