mirror of
https://github.com/bitwarden/browser
synced 2026-02-25 17:13:24 +00:00
remove gate on flatpak
This commit is contained in:
@@ -97,21 +97,19 @@ fn get_socket_paths() -> Result<Vec<PathBuf>, anyhow::Error> {
|
||||
|
||||
let mut paths = vec![get_legacy_default_socket_path()?];
|
||||
|
||||
// TODO: handle flatpak/snap
|
||||
if !is_flatpak() {
|
||||
let basedir = get_socket_basedir()?;
|
||||
let socket_path = get_default_socket_path(basedir);
|
||||
let basedir = get_socket_basedir()?;
|
||||
let socket_path = get_default_socket_path(basedir);
|
||||
|
||||
// create the bitwarden subdir if needed
|
||||
fs::create_dir_all(
|
||||
socket_path
|
||||
.parent()
|
||||
.ok_or(anyhow!("Malformed default socket path."))?,
|
||||
)
|
||||
.map_err(|e| anyhow!(format!("Error creating {socket_path:?}: {e}")))?;
|
||||
// create the bitwarden subdir if needed
|
||||
fs::create_dir_all(
|
||||
socket_path
|
||||
.parent()
|
||||
.ok_or(anyhow!("Malformed default socket path."))?,
|
||||
)
|
||||
.map_err(|e| anyhow!(format!("Error creating {socket_path:?}: {e}")))?;
|
||||
|
||||
paths.push(socket_path);
|
||||
|
||||
paths.push(socket_path);
|
||||
}
|
||||
Ok(paths)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user