Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant get app (getPath and getVersion) #822

Open
sergey-rozhkov-andersenlab opened this issue Feb 20, 2025 · 0 comments
Open

I cant get app (getPath and getVersion) #822

sergey-rozhkov-andersenlab opened this issue Feb 20, 2025 · 0 comments

Comments

@sergey-rozhkov-andersenlab
Copy link

sergey-rozhkov-andersenlab commented Feb 20, 2025

I want to get this app (for call getPath('appData') and getVersion()).

In my ElectronService I used this code

const app = window.require('electron').app;

console.log(app.getPath("appData"));

But app is undefined.

How can I get path and version ?

angular-electron@14.0.1

    "electron": "30.0.1",
    "electron-builder": "24.13.3",
    "electron-debug": "3.2.0",
    "electron-reloader": "1.2.3",

Anyone can help?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant