// #[tauri::command] // pub fn open_file(app_handle: tauri::AppHandle, relative_path: String) -> Option { // let mut file = File::open("foo.txt")?; // let mut contents = String::new(); // file.read_to_string(&mut contents)?; // assert_eq!(contents, "Hello, world!"); // Ok(()) // } use std::{path::Path, sync::Mutex}; use crate::Config; use tauri::Manager;