1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

Add debug info

This commit is contained in:
Bernd Schoolmann
2025-06-13 16:17:36 +02:00
parent f12c704bc4
commit 3defef3b6c

View File

@@ -118,6 +118,14 @@ pub fn all_paths(name: &str) -> Vec<std::path::PathBuf> {
paths.extend(flatpak_paths);
let username = env::var("USER").unwrap_or_else(|_| "unknown".to_string());
let test = homedir::home(username.clone());
println!("homedir {:?}", test.unwrap());
println!("username {:?}", username.clone());
println!(
"home path {:?}",
env::var("USER").unwrap_or_else(|_| "unknown".to_string())
);
// The home directory is changed inside of snap, but we need the host home directory here. The following logic works in default
// ubuntu installations, but may not work if the home directory is changed (active directory + mounted homes, etc.).
let host_home = PathBuf::from(format!("/home/{username}"));