mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(monado): stop monado.service cleanly on engine shutdown to prevent window hang
This commit is contained in:
1 parent
378332b892
commit
b7ef8b10a4
1 file changed
+9
@@ -176,6 +176,15 @@ impl FpvEngineController {
|
|||||||
log::info!("[Moteur FPV] Arrêt et jonction du thread worker...");
|
log::info!("[Moteur FPV] Arrêt et jonction du thread worker...");
|
||||||
let _ = handle.join();
|
let _ = handle.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sur Linux, s'assurer que la fenêtre de simulation de Monado ne reste pas bloquée
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
{
|
||||||
|
let _ = std::process::Command::new("systemctl")
|
||||||
|
.args(["--user", "stop", "monado.service"])
|
||||||
|
.output();
|
||||||
|
}
|
||||||
|
|
||||||
let mut mon = self.monitor.lock();
|
let mut mon = self.monitor.lock();
|
||||||
mon.usb_video_status = SubsystemStatus::Stopped;
|
mon.usb_video_status = SubsystemStatus::Stopped;
|
||||||
mon.openxr_status = SubsystemStatus::Stopped;
|
mon.openxr_status = SubsystemStatus::Stopped;
|
||||||
|
|||||||
Reference in new issue
Block a user