mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +00:00
[BEEEP][PM-14388] Better dev experience on desktop-browser IPC (#11822)
This commit is contained in:
@@ -31,7 +31,7 @@ pub fn path(name: &str) -> std::path::PathBuf {
|
||||
format!(r"\\.\pipe\{hash_b64}.app.{name}").into()
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(all(target_os = "macos", not(debug_assertions)))]
|
||||
{
|
||||
let mut home = dirs::home_dir().unwrap();
|
||||
|
||||
@@ -53,6 +53,13 @@ pub fn path(name: &str) -> std::path::PathBuf {
|
||||
tmp.join(format!("app.{name}"))
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "macos", debug_assertions))]
|
||||
{
|
||||
// When running in debug mode, we use the tmp dir because the app is not sandboxed
|
||||
let dir = std::env::temp_dir();
|
||||
dir.join(format!("app.{name}"))
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
// On Linux, we use the user's cache directory.
|
||||
|
||||
Reference in New Issue
Block a user