mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-02 14:18:49 +00:00
fix: reenable injection; restore injected file on shutdown
This commit is contained in:
parent
c52770896e
commit
4cffeee7d3
2 changed files with 1 additions and 2 deletions
|
@ -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(),
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue