diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 5e73922..6fffc20 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -27,7 +27,6 @@ jobs: toolchain: stable - name: Install system dependencies - # run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - name: Install cargo audit diff --git a/notes.md b/notes.md index 75946a1..f92a111 100644 --- a/notes.md +++ b/notes.md @@ -3,3 +3,6 @@ run `yarn tauri dev` to start app in dev environment Note: `bun tauri dev` works on linux, but not on Macs right now.s + +fixes webkit bs in some linux instalations +export WEBKIT_DISABLE_COMPOSITING_MODE=1 diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 3b3b51d..cf108e7 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -111,11 +111,7 @@ pub async fn wait_and_return(duration_seconds: u64) -> String { pub fn split_host_port(url: &str) -> Result<(String, u16), ParseError> { let some_url = Url::parse(url)?; Ok(( - format!( - "{}://{}", - some_url.scheme(), - some_url.host_str().unwrap().to_string(), - ), + format!("{}://{}", some_url.scheme(), some_url.host_str().unwrap(),), some_url.port().unwrap(), )) } @@ -131,7 +127,7 @@ pub async fn log_experiment( // Create the logs directory if it doesn't exist if !Path::new(&app_data_dir).exists() { - fs::create_dir(&app_data_dir)?; + fs::create_dir(app_data_dir)?; } let mut log_data = if Path::new(&log_file_path).exists() {