Quantcast
Channel: Write to file in "appData" in Electron. Where to add import { app } from "electron";? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by tpikachu for Write to file in "appData" in Electron. Where to add...

To get the app path at your main process. Then use this code at your main.jsswitch(process.platform) { case 'darwin': { return path.join(process.env.HOME, 'Library', 'Application Support', ...); } case...

View Article


Answer by spring for Write to file in "appData" in Electron. Where to add...

I know I need to add import { app } from "electron"; some where but Iam unsure where to place it.The app module is always (in my experience) imported in your main process so you can control the...

View Article


Write to file in "appData" in Electron. Where to add import { app } from...

I am making my first Electron application. I am trying to save a text file to the appData folder (example C:\Users\user\AppData\Roaming). I know I need to add import { app } from "electron"; somewhere...

View Article

Answer by Shawn Zhu for Write to file in "appData" in Electron. Where to add...

The Answer in 2024As of this writing I'm on electron-28.2.5. Electron has made improvements in securing your app. It proposes a framework that you only expose Main process APIs you need to your...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>