miniben-90 / x-win

This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows.
MIT License
32 stars 6 forks source link

url retrieval problem in browser on electron #16

Closed Brozzor closed 8 months ago

Brozzor commented 8 months ago

Hello, I've tried your module in a completely blank nodejs project and I manage to retrieve the urls from my chrome browser correctly, but when I do exactly the same thing in an electronjs project everything works except the url retrieval.

In nodeJS blank project : image

In electronJs Project (https://github.com/Deluze/electron-vue-template): image image

thank you for help

miniben-90 commented 8 months ago

Hi,

For some reason with electron it is not possible to bring some data directly outside a worker when you use the sync functions (you will also have the issue with openWindows).

You have three solutions for the moment:

You will have the same problem with Darwin (MacOS).

I hope that's help you!