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

App.OpenFile never called #824

Open
Cedric-LE opened this issue Dec 12, 2023 · 0 comments
Open

App.OpenFile never called #824

Cedric-LE opened this issue Dec 12, 2023 · 0 comments
Labels

Comments

@Cedric-LE
Copy link

Using electron net 23.6.1

.NET core 7.0.203 and node v16.20.2

  • Target: Windows 10

I want to perform an action when launching the application by double-clicking on a file from the explorer.
I've added a callback to the OpenFile event on the App to obtain the path to the file passed as an exe argument. The callback is never called.

I did something like that.

        ElectronNET.API.Electron.App.OpenFile +=  Console.WriteLine;

        // await window
        var window = await ElectronNET.API.Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions
        {
          Title = "My App",
          AutoHideMenuBar = true,
          Width = 1200,
          Height = 800,
        });


@Cedric-LE Cedric-LE added the bug label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant