Skip to content

Commit

Permalink
changed windows's firefox path
Browse files Browse the repository at this point in the history
  • Loading branch information
GiveMeFox committed Mar 18, 2023
1 parent 7d1e772 commit b570b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/firefox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Firefox {

fn get_path() -> Option<String> {
match env::consts::OS {
"windows" => Some("C:\\Users\\%USERNAME%\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles".to_string()),
"windows" => Some(format!("C:\\Users\\{}\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles", whoami::username())),
"linux" => Some(format!("/home/{}/.mozilla/firefox", whoami::username())),
_ => None,
}
Expand Down

0 comments on commit b570b7b

Please sign in to comment.