mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-12 19:18:58 +00:00
fix: ensure _v2-entry-point is marked as executable
As far as I can tell, the file should always be executable, but one person was having issues with both the backup and injected entry point file not having the execute bit.
This commit is contained in:
parent
830344d665
commit
b0f0f4647c
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