Allow obtaining system Pepper Flash path

This commit is contained in:
Brian R. Bondy 2016-06-08 16:37:27 -04:00
parent 82bee12c00
commit 352a9cd6f2
3 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,8 @@ int GetPathConstant(const std::string& name) {
return chrome::DIR_USER_PICTURES;
else if (name == "videos")
return chrome::DIR_USER_VIDEOS;
else if (name == "pepperFlashSystemPlugin")
return chrome::FILE_PEPPER_FLASH_SYSTEM_PLUGIN;
else
return -1;
}

View file

@ -346,6 +346,7 @@ You can request the following paths by the name:
* `music` Directory for a user's music.
* `pictures` Directory for a user's pictures.
* `videos` Directory for a user's videos.
* `pepperFlashSystemPlugin` Full path to the system version of the Pepper Flash plugin.
### `app.setPath(name, path)`

View file

@ -41,6 +41,8 @@ app.on('ready', () => {
});
```
The path to the system wide Pepper Flash plugin can also be obtained by calling `app.getPath('pepperFlashSystemPlugin')`.
## Enable Flash Plugin in a `<webview>` Tag
Add `plugins` attribute to `<webview>` tag.