Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(windows): resource_dir() return \\\?\\ prefix symbols #10093

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/tauri-utils/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ mod tests {

use crate::{Env, PackageInfo};

#[test]
fn test_current_exe() {
let current = super::current_exe().unwrap();
let current_expected = std::env::current_exe().unwrap();
assert_eq!(current, current_expected);
}

#[test]
fn resolve_resource_dir() {
let package_info = PackageInfo {
Expand Down
2 changes: 1 addition & 1 deletion core/tauri-utils/src/platform/starting_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl StartingBinary {
}

// we canonicalize the path to resolve any symlinks to the real exe path
Self(dangerous_path.canonicalize())
Self(dunce::canonicalize(dangerous_path))
}

/// A clone of the [`PathBuf`] found to be the starting path.
Expand Down