1
Fork 0

Pass db location when launching hydrus, force XCB backend

This commit is contained in:
Joshua Goins 2022-10-11 21:17:18 -04:00
parent 2b40beef0f
commit 26299ab999

View file

@ -30,9 +30,19 @@ fn make_temp_location(path: &str) -> String {
fn launch_hydrus(config: &Config) {
println!("Launching hydrus...");
let hydrus = Command::new(&config.hydrus_exec_location)
.status()
.expect("Failed to run hydrus");
let mut hydrus = Command::new(&config.hydrus_exec_location);
let hydrus = hydrus.args(["-d", &config.hydrus_db_location]);
if cfg!(unix) {
hydrus
.env("QT_QPA_PLATFORM", "xcb")
.status()
.expect("Failed to run hydrus");
} else {
hydrus
.status()
.expect("Failed to run hydrus");
}
}
fn is_locked(config: &Config) -> bool {