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));