From 4cffeee7d39f28efca44227811256ed12bc6e504 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Thu, 20 Jun 2024 07:51:25 +0200 Subject: [PATCH] fix: reenable injection; restore injected file on shutdown --- src/steam_linux_runtime_injector.rs | 1 - src/ui/app.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/steam_linux_runtime_injector.rs b/src/steam_linux_runtime_injector.rs index 2b85eb0..e9fa920 100644 --- a/src/steam_linux_runtime_injector.rs +++ b/src/steam_linux_runtime_injector.rs @@ -7,7 +7,6 @@ use anyhow::bail; use std::{fs::read_to_string, io::Write, path::Path}; fn get_runtime_entrypoint_path() -> Option { - return None; let mut out = format!( "{home}/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point", home = get_home_dir(), diff --git a/src/ui/app.rs b/src/ui/app.rs index fd27117..421a022 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -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));