mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
fix: don't use the steam runtime bundled sniper entrypoint
This commit is contained in:
parent
4cffeee7d3
commit
0461030627
1 changed files with 5 additions and 17 deletions
|
@ -7,25 +7,13 @@ use anyhow::bail;
|
|||
use std::{fs::read_to_string, io::Write, path::Path};
|
||||
|
||||
fn get_runtime_entrypoint_path() -> Option<String> {
|
||||
let mut out = format!(
|
||||
vec![format!(
|
||||
"{home}/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point",
|
||||
home = get_home_dir(),
|
||||
);
|
||||
|
||||
if Path::new(&out).is_file() {
|
||||
return Some(out);
|
||||
}
|
||||
|
||||
out = format!(
|
||||
"{data}/Steam/ubuntu12_64/steam-runtime-sniper/_v2-entry-point",
|
||||
data = get_xdg_data_dir()
|
||||
);
|
||||
|
||||
if Path::new(&out).is_file() {
|
||||
return Some(out);
|
||||
}
|
||||
|
||||
None
|
||||
)]
|
||||
.iter()
|
||||
.find(|path| Path::new(&path).is_file())
|
||||
.cloned()
|
||||
}
|
||||
|
||||
fn get_backup_runtime_entrypoint_location() -> String {
|
||||
|
|
Loading…
Add table
Reference in a new issue