mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-16 21:51:13 +01:00
Fix Windows paths for new plugin runtime
This commit is contained in:
1 parent
331f1eb9b9
commit
48c239b7dc
3 files changed
+1952
-1932
No files matched your search
@@ -112,13 +112,12 @@ async fn read_plugins_dir(dir: &PathBuf) -> Result<Vec<String>> {
|
||||
Ok(dirs)
|
||||
}
|
||||
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
fn fix_windows_paths(p: &PathBuf) -> String {
|
||||
use dunce;
|
||||
use regex::Regex;
|
||||
use path_slash::PathBufExt;
|
||||
|
||||
use regex::Regex;
|
||||
|
||||
// 1. Remove UNC prefix for Windows paths to pass to sidecar
|
||||
let safe_path = dunce::simplified(p.as_path()).to_string_lossy().to_string();
|
||||
|
||||
|
||||
Reference in new issue
Block a user