diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index 87f960a878..0b7612400f 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -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; } diff --git a/docs/api/app.md b/docs/api/app.md index 1f72dba2ca..b7ce6ce02f 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -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)` diff --git a/docs/tutorial/using-pepper-flash-plugin.md b/docs/tutorial/using-pepper-flash-plugin.md index 76c89d6fdd..9ff6ebf00e 100644 --- a/docs/tutorial/using-pepper-flash-plugin.md +++ b/docs/tutorial/using-pepper-flash-plugin.md @@ -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 `` Tag Add `plugins` attribute to `` tag.