Fix updater breaking user execute permissions on Unix (#2055)
* Fix updater breaking user run permissions on *nix The updater currently sets the permissions to user run only when the yes button is clicked, this changes it to run on Updater.cs after it's done updating as it should. * Fix nits
This commit is contained in:
parent
fa55d7133a
commit
1c49089ff0
2 changed files with 15 additions and 7 deletions
|
@ -42,7 +42,7 @@ namespace Ryujinx.Modules
|
|||
YesButton.Clicked += YesButton_Clicked;
|
||||
NoButton.Clicked += NoButton_Clicked;
|
||||
}
|
||||
|
||||
|
||||
private void YesButton_Clicked(object sender, EventArgs args)
|
||||
{
|
||||
if (_restartQuery)
|
||||
|
@ -51,12 +51,6 @@ namespace Ryujinx.Modules
|
|||
string ryuExe = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ryuName);
|
||||
string ryuArg = string.Join(" ", Environment.GetCommandLineArgs().AsEnumerable().Skip(1).ToArray());
|
||||
|
||||
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
UnixFileInfo unixFileInfo = new UnixFileInfo(ryuExe);
|
||||
unixFileInfo.FileAccessPermissions |= FileAccessPermissions.UserExecute;
|
||||
}
|
||||
|
||||
Process.Start(ryuExe, ryuArg);
|
||||
|
||||
Environment.Exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue