mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +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};
|
use std::{fs::read_to_string, io::Write, path::Path};
|
||||||
|
|
||||||
fn get_runtime_entrypoint_path() -> Option<String> {
|
fn get_runtime_entrypoint_path() -> Option<String> {
|
||||||
let mut out = format!(
|
vec![format!(
|
||||||
"{home}/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point",
|
"{home}/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point",
|
||||||
home = get_home_dir(),
|
home = get_home_dir(),
|
||||||
);
|
)]
|
||||||
|
.iter()
|
||||||
if Path::new(&out).is_file() {
|
.find(|path| Path::new(&path).is_file())
|
||||||
return Some(out);
|
.cloned()
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_backup_runtime_entrypoint_location() -> String {
|
fn get_backup_runtime_entrypoint_location() -> String {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue