-
Notifications
You must be signed in to change notification settings - Fork 17.1k
Closed
Description
- Electron version: 1.4.15
- Operating system: Mac OS 10.11.6
Desired behavior
- Create a symlink to a file:
ln -s the-existing-file the-alias- 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);
})-
Select the symlink path.
-
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
- The relevant OSX API: -(NSOpenPanel *) resolvesAliases
- An OSX bug that prevents the
resolvesAliasesflag from working unless the symlink is the last element of the path: http://www.openradar.me/11398659
Reactions are currently unavailable