+5
src-tauri/src/util/handle_uri_proto.rs
+5
src-tauri/src/util/handle_uri_proto.rs
···
26
26
// because tauri should only let the frontend of VRCPhotoManager read files throught this. Only
27
27
// becomes a potential issue if the frontend gets modified or there's an issue with tauri.
28
28
29
+
#[cfg(windows)]
29
30
let path = uri.path().split_at(1).1;
31
+
32
+
#[cfg(unix)]
33
+
let path = uri.path();
34
+
30
35
dbg!(path);
31
36
32
37
let file = fs::File::open(path);