Skip to content

Glossary: Desktop Apps with Electron and Tauri

app.getPath

Also written: app.getPath("userData"), userData

An Electron function that returns a standard per-user folder, such as `userData` for the till's `sales.json`. Use it instead of the app's own folder, which may be read-only.

Where the book teaches it

Related terms

app_data_dir