Skip to content

Commit

Permalink
Fixed: Attempt to chmod the .desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Sep 20, 2024
1 parent db00cda commit 90db82f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/Reloaded.Mod.Installer.Lib/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ private static void LinuxTryMarkAsExecutable(string windowsPath)
{
windowsPath = windowsPath.Replace('\\', '/');
windowsPath = windowsPath.Replace("Z:", "");
try { Process.Start($"chmod +x \"{windowsPath}\""); }
var process = $"Z:/bin/chmod +x \"{windowsPath}\"";
var processAlt = $"Z:/usr/bin/chmod +x \"{windowsPath}\"";
try { Process.Start(process); }
catch (Exception) { /* ignored */ }
try { Process.Start(processAlt); }
catch (Exception) { /* ignored */ }
}

Expand Down

0 comments on commit 90db82f

Please sign in to comment.