Skip to content

Conversation

@witcher112
Copy link
Contributor

@witcher112 witcher112 commented Dec 13, 2018

Checklist

  1. PR associated with Redmine issue (if applicable)
  2. Changelog entry with id of Redmine issue
  3. Version.cs up to date
  4. Review requested

@witcher112 witcher112 requested review from Dzejkop and genail and removed request for Dzejkop December 13, 2018 03:00
@witcher112
Copy link
Contributor Author

No changelog update since it's a fix for feature that is currently being added.

string executablePath = Path.Combine(_app.LocalDirectory.Path, appVersion.MainExecutable);

if (File.Exists(executablePath))
bool isOSXApp = platformType == PlatformType.OSX &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any chance that Platform.GetPlatformType returns OSX but the application isn't an OSX app?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it's always the same.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The we shouldn't need all the other conditions, right?

...
executablePath.EndsWith(".app") &&
Directory.Exists(executablePath);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't checking whether application platform that secret we are using is OSX, but whether the appVersion.MainExecutable points to valid OSX .app.

string executablePath = Path.Combine(_app.LocalDirectory.Path, appVersion.MainExecutable);

if (File.Exists(executablePath))
bool isOSXApp = platformType == PlatformType.OSX &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The we shouldn't need all the other conditions, right?

...
executablePath.EndsWith(".app") &&
Directory.Exists(executablePath);

@witcher112 witcher112 merged commit 29bd96d into dev/v3.11.x Dec 20, 2018
@witcher112 witcher112 deleted the feature/v3.11.x/1115-osx-executable-args-issue branch December 20, 2018 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants