fix: reenable injection; restore injected file on shutdown

This commit is contained in:
Gabriele Musco 2024-06-20 07:51:25 +02:00
commit 4cffeee7d3
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,6 @@ use anyhow::bail;
use std::{fs::read_to_string, io::Write, path::Path};
fn get_runtime_entrypoint_path() -> Option<String> {
return None;
let mut out = format!(
"{home}/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point",
home = get_home_dir(),

View file

@ -239,6 +239,7 @@ impl App {
}
pub fn restore_openxr_openvr_files(&self) {
restore_runtime_entrypoint();
if let Err(e) = set_current_active_runtime_to_steam() {
alert(
"Could not restore Steam active runtime",
@ -332,7 +333,6 @@ impl SimpleComponent for App {
}
Msg::OnServiceExit(code) => {
self.restore_openxr_openvr_files();
restore_runtime_entrypoint();
self.main_view
.sender()
.emit(MainViewMsg::XRServiceActiveChanged(false, None, false));