From 13c4014114ac1da5ae51276d054357d83d621c12 Mon Sep 17 00:00:00 2001 From: Miepee Date: Wed, 31 Aug 2022 13:05:04 +0200 Subject: [PATCH] Linux: mark shortcut as executable --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs index 54a024c..e3f6b40 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs @@ -5,6 +5,7 @@ using Eto.Forms; using LibGit2Sharp; using System; using System.ComponentModel; +using System.Diagnostics; using System.IO; using System.IO.Compression; using System.Linq; @@ -859,6 +860,7 @@ public partial class MainForm : Form desktopEntryText = desktopEntryText.Replace("EXECUTABLE", $"{Core.ProfilesPath}/{profile.Name}/{gameName}"); File.WriteAllText(shortcutFile, desktopEntryText); + Process.Start("chmod", $"+x \"{shortcutFile}\"")?.WaitForExit(); } else if (OS.IsMac) {