Skip to content

Commit ce4a434

Browse files
committed
Also let tauri app use but-path for consistency.
It seems to be possible to pickup multiple paths somehow, so one way to solve this is to assure they are the same.
1 parent 2f88a06 commit ce4a434

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/but-path/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn app_config_dir() -> anyhow::Result<PathBuf> {
1313
if let Ok(test_dir) = std::env::var("E2E_TEST_APP_DATA_DIR") {
1414
return Ok(PathBuf::from(test_dir).join("gitbutler"));
1515
}
16-
dirs::config_dir()
16+
dirs::data_dir()
1717
.ok_or(anyhow::anyhow!("Could not get app data dir"))
1818
.map(|dir| dir.join("gitbutler"))
1919
}

crates/gitbutler-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ but-api.workspace = true
7070
but-claude.workspace = true
7171
open = "5"
7272
url = "2.5.4"
73-
dirs.workspace = true
73+
but-path.workspace = true
7474
uuid.workspace = true
7575

7676
[target.'cfg(target_os = "macos")'.dependencies]

crates/gitbutler-tauri/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn main() {
3737
let mut tauri_context = generate_context!();
3838
gitbutler_secret::secret::set_application_namespace(&tauri_context.config().identifier);
3939

40-
let config_dir = dirs::config_dir()
40+
let config_dir = but_path::app_config_dir()
4141
.expect("missing config dir")
4242
.join("gitbutler");
4343
std::fs::create_dir_all(&config_dir).expect("failed to create config dir");

0 commit comments

Comments
 (0)