https://github.com/codebytere/native-kde-file-open
open native file dialog on kde plasma desktop
https://github.com/codebytere/native-kde-file-open
Last synced: 9 months ago
JSON representation
open native file dialog on kde plasma desktop
- Host: GitHub
- URL: https://github.com/codebytere/native-kde-file-open
- Owner: codebytere
- Created: 2017-07-27T22:59:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T20:20:18.000Z (over 8 years ago)
- Last Synced: 2024-04-14T07:25:54.427Z (almost 2 years ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Native KDE File Open
This module allows for the opening of a native file window in KDE distributions, and is intended for use in Electron applications until a
full fix has been created for [this](https://github.com/electron/electron/issues/2911) issue.
To use:
```javascript
const nativePicker = require('native-kde-file-open');
// to open single file or multiple files, with promise
nativePicker.openFile().then(ret => {
console.log(ret);
});
// to open single file or multiple files, with callback
nativePicker.openFile((err, ret) => {
console.log(ret);
});
// to save single file or multiple files, with promise
nativePicker.saveFile().then(ret => {
console.log(ret);
});
// to save single file or multiple files, with callback
nativePicker.saveFile((err, ret) => {
console.log(ret);
});
```