From b0f0f4647c4df03258383cf5b9e84cf9f3cdf376 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Tue, 8 Jul 2025 15:12:44 -0500 Subject: [PATCH] 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. --- src/steam_linux_runtime_injector.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/steam_linux_runtime_injector.rs b/src/steam_linux_runtime_injector.rs index 97f50c5..eb76029 100644 --- a/src/steam_linux_runtime_injector.rs +++ b/src/steam_linux_runtime_injector.rs @@ -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(()); }