Skip to content

Add resolvesAliases option to openDialog#8617

Merged
kevinsawicki merged 4 commits intomasterfrom
resolves-aliases-nsopen
Feb 13, 2017
Merged

Add resolvesAliases option to openDialog#8617
kevinsawicki merged 4 commits intomasterfrom
resolves-aliases-nsopen

Conversation

@MarshallOfSound
Copy link
Copy Markdown
Member

Fixes #8601

Thanks for the detailed issue report @maxbrunsfeld was wondering what was causing this in a different Electron app for a while 😆

@kevinsawicki kevinsawicki self-assigned this Feb 7, 2017
untouched on Windows. For example, a button label of `Vie&w` will be
converted to `Vie_w` on Linux and `View` on macOS and can be selected
via `Alt-W` on Windows and Linux.
* `resolvesAliases` Boolean (optional) - Whether to resolve symlinks to their target path
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This feels like an option similar to showHiddenFiles so I'm wondering if this would be a better fit as a properties option.

What do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Would make sense to put it in with the rest of those 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@MarshallOfSound #8623 was merged so there are some conflicts in this pull request now, let me know if you'd like me to resolve them.

If we do move this setting to properties it will probably need to have a negated name since it will be enabled by default for backwards-compatibility.

A couple name ideas for this:

  • noResolveAliases
  • unresolvedAliases

@kevinsawicki kevinsawicki force-pushed the resolves-aliases-nsopen branch from 6550fe9 to a746651 Compare February 13, 2017 16:24
@kevinsawicki kevinsawicki merged commit 8c2cf03 into master Feb 13, 2017
@kevinsawicki
Copy link
Copy Markdown
Contributor

Thanks for this @MarshallOfSound 🚢

@kevinsawicki kevinsawicki deleted the resolves-aliases-nsopen branch February 13, 2017 16:29
@maxbrunsfeld
Copy link
Copy Markdown
Contributor

Yeah, thanks @MarshallOfSound!

@dmitry-zakablukov
Copy link
Copy Markdown

@MarshallOfSound , can the option noResolveAliases be also applied to Windows symbolic links? Now it has no effect on Windows and I get resolved paths from remote.dialog.showOpenDialog.

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.

5 participants