Skip to content

Expose NSOpenPanel's resolveAliases property via showOpenDialog API #8601

@maxbrunsfeld

Description

@maxbrunsfeld
  • Electron version: 1.4.15
  • Operating system: Mac OS 10.11.6

Desired behavior

  1. Create a symlink to a file:
ln  -s  the-existing-file  the-alias
  1. Display the Open File dialog using a new API to preserve symlink paths:
electron.dialog.showOpenDialog({
  properties: ['openFile'],

  // This is a new flag. I don't know what it should be called.
  resolveAliases: false, 
}, (selectedPaths) => {
  console.log(selectedPaths);
})
  1. Select the symlink path.

  2. See that the callback is called with the symlink paths (the-alias).

Actual behavior

Currently, when a symlink is selected, the callback is always called with the symlink's resolved path.

Notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions