Added the getDataPath function to the app api docs
This commit is contained in:
parent
54ee12308d
commit
3afb4e017c
1 changed files with 9 additions and 0 deletions
|
@ -87,6 +87,15 @@ executed. It is possible that a window cancels the quitting by returning
|
|||
Quit the application directly, it will not try to close all windows so cleanup
|
||||
code will not run.
|
||||
|
||||
## app.getDataPath()
|
||||
|
||||
Returns the right data path for the OS appended with the app name.
|
||||
|
||||
* `%APPDATA%\My App Name` (`C:\Users\[username]\AppData\Roaming\My App Name`)
|
||||
in Windows
|
||||
* `~/.config/My App Name` in Linux
|
||||
* `/Users/[username]/Library/Application Support/My App Name` in OS X
|
||||
|
||||
## app.getVersion()
|
||||
|
||||
Returns the version of loaded application, if no version is found in
|
||||
|
|
Loading…
Reference in a new issue