Merge pull request #5271 from rhysd/github-electron/add-getAppPath

Add GitHubElectron.App.getAppPath()
This commit is contained in:
Masahiro Wakame
2015-08-08 16:34:28 +09:00
+4
View File
@@ -855,6 +855,10 @@ declare module GitHubElectron {
* cleanup code will not run.
*/
terminate(): void;
/**
* Returns the current application directory.
*/
getAppPath(): string;
/**
* @param name One of: home, appData, userData, cache, userCache, temp, userDesktop, exe, module
* @returns The path to a special directory or file associated with name.