mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-09-28 12:18:38 +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,
|
||||
profile::Profile,
|
||||
util::{
|
||||
file_utils::{copy_file, get_writer},
|
||||
file_utils::{copy_file, get_writer, mark_as_executable},
|
||||
steam_library_folder::SteamLibraryFolder,
|
||||
},
|
||||
};
|
||||
|
@ -50,6 +50,7 @@ pub fn restore_runtime_entrypoint() {
|
|||
let backup = get_backup_runtime_entrypoint_location();
|
||||
if Path::new(&backup).is_file() {
|
||||
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"),
|
||||
dest,
|
||||
)?;
|
||||
mark_as_executable(dest)?;
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue