Skip to content

Commit f8441dc

Browse files
authored
Add support for WIndows (#190)
This enables the SDK to authenticate via the 1Password app on Windows.
1 parent 2588608 commit f8441dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/onepassword/desktop_core.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ def find_1password_lib_path():
2323
"/opt/1Password/libop_sdk_ipc_client.so",
2424
"/snap/bin/1password/libop_sdk_ipc_client.so",
2525
]
26+
elif os_name == "Windows":
27+
locations = [
28+
str(Path.home() / r"AppData\Local\1Password\op_sdk_ipc_client.dll"),
29+
r"C:\Program Files\1Password\app\8\op_sdk_ipc_client.dll",
30+
r"C:\Program Files (x86)\1Password\app\8\op_sdk_ipc_client.dll",
31+
str(Path.home() / r"AppData\Local\1Password\app\8\op_sdk_ipc_client.dll"),
32+
]
2633
else:
2734
raise OSError(f"Unsupported operating system: {os_name}")
2835

0 commit comments

Comments
 (0)