Skip to content

Commit

Permalink
Fixes #210
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamVenner committed Mar 12, 2024
1 parent c0a63c4 commit 4296848
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ fn deadlock_watchdog() {
}

fn main() {
// https://github.com/WilliamVenner/gmpublisher/issues/210
if cfg!(target_os = "linux") {
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
}

std::panic::set_hook(Box::new(|panic| logging::panic(panic)));

rayon::ThreadPoolBuilder::new().num_threads(*crate::NUM_THREADS).build_global().unwrap();
Expand Down

0 comments on commit 4296848

Please sign in to comment.