Skip to content

I cant get app (getPath and getVersion) #822

@sergey-rozhkov-andersenlab

Description

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 ?

[email protected]

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

Anyone can help?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions