Updated named pipe path
This commit is contained in:
@@ -4,11 +4,12 @@ Application that works as a proxy between Native Messaging browser extension and
|
||||
This is still under development. Installing the proxy needs manual changes to JSON scripts installed for Native Messaging.
|
||||
See [this page](https://developer.chrome.com/extensions/nativeMessaging) for further information.
|
||||
|
||||
keepassxc-proxy listens stdin from keepassxc-browser extension and transfers the data to Unix domain socket `/tmp/kpxc_server` which KeePassXC listens.
|
||||
keepassxc-proxy listens stdin from keepassxc-browser extension and transfers the data to Unix domain socket `XDG_RUNTIME_DIR` or `/tmp/kpxc_server` which KeePassXC listens.
|
||||
With Windows this is a named pipe under `keepassxc\<username>\kpxc_server`.
|
||||
|
||||
```
|
||||
Copyright (C) 2017 Sami Vänttinen <sami.vanttinen@protonmail.com>
|
||||
Copyright (C) 2017 Andy Brandt <andy@brandt.tech>
|
||||
Copyright (C) 2017-2018 Sami Vänttinen <sami.vanttinen@protonmail.com>
|
||||
Copyright (C) 2017-2018 Andy Brandt <andy@brandt.tech>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ impl<W: Write> Write for ProxySocket<W> {
|
||||
|
||||
#[cfg(windows)]
|
||||
pub fn connect() -> io::Result<ProxySocket<PipeClient>> {
|
||||
let temp_path = env::var("TEMP").unwrap();
|
||||
let pipe_name = format!("\\\\.\\pipe\\{}\\kpxc_server", temp_path);
|
||||
let username = env::var("USERNAME").unwrap();
|
||||
let pipe_name = format!("\\\\.\\pipe\\keepassxc\\{}\\kpxc_server", username);
|
||||
let client = PipeClient::connect(pipe_name)?;
|
||||
Ok(ProxySocket { inner: client })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user