mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-09-29 04:38:39 +00:00
Merge branch 'fix/slr-entry-point-mode' into 'main'
fix: ensure _v2-entry-point is marked as executable See merge request gabmus/envision!135
This commit is contained in:
commit
c2de218181
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@ use crate::{
|
||||||
paths::get_backup_dir,
|
paths::get_backup_dir,
|
||||||
profile::Profile,
|
profile::Profile,
|
||||||
util::{
|
util::{
|
||||||
file_utils::{copy_file, get_writer},
|
file_utils::{copy_file, get_writer, mark_as_executable},
|
||||||
steam_library_folder::SteamLibraryFolder,
|
steam_library_folder::SteamLibraryFolder,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -50,6 +50,7 @@ pub fn restore_runtime_entrypoint() {
|
||||||
let backup = get_backup_runtime_entrypoint_location();
|
let backup = get_backup_runtime_entrypoint_location();
|
||||||
if Path::new(&backup).is_file() {
|
if Path::new(&backup).is_file() {
|
||||||
copy_file(&backup, path);
|
copy_file(&backup, path);
|
||||||
|
let _ = mark_as_executable(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,6 +79,7 @@ pub fn set_runtime_entrypoint_launch_opts_from_profile(profile: &Profile) -> any
|
||||||
.join("\n"),
|
.join("\n"),
|
||||||
dest,
|
dest,
|
||||||
)?;
|
)?;
|
||||||
|
mark_as_executable(dest)?;
|
||||||
|
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue