diff --git a/keepassxc_proxy_client/protocol.py b/keepassxc_proxy_client/protocol.py index 42e6676..a76e09a 100644 --- a/keepassxc_proxy_client/protocol.py +++ b/keepassxc_proxy_client/protocol.py @@ -88,6 +88,9 @@ def get_socket_path(): flatpak_socket_path = os.path.join(os.environ["XDG_RUNTIME_DIR"], "app/org.keepassxc.KeePassXC", server_name) if os.path.exists(flatpak_socket_path): return flatpak_socket_path + snap_socket_path= os.path.join(os.environ["HOME"], "snap/keepassxc/common", server_name) + if os.path.exists(snap_socket_path): + return snap_socket_path return os.path.join(os.environ["XDG_RUNTIME_DIR"], server_name) elif system == "Darwin" and "TMPDIR" in os.environ: return os.path.join(os.getenv("TMPDIR"), server_name)