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

window.getTitle doesn't work on macOS Catalina #32

Open
sentialx opened this issue Dec 14, 2019 · 6 comments
Open

window.getTitle doesn't work on macOS Catalina #32

sentialx opened this issue Dec 14, 2019 · 6 comments
Labels
bug Something isn't working platform/macos

Comments

@sentialx
Copy link
Owner

Bug description
window.getTitle method doesn't work on macOS Catalina, because now it requires some desktop capturer permissions.

Details:

  • Operating System: macOS Catalina
  • node-window-manager version: 2.0.0
  • Last known working node-window-manager version: none
@prodrammer
Copy link

As a workaround, request permission using https://github.com/karaggeorge/mac-screen-capture-permissions first.

@aniyd
Copy link

aniyd commented Jul 21, 2020

@sentialx still I am facing this issue with my electron app on MAC.

@mattallty
Copy link

BTW, PR #51 fixed a segmentation fault, but now getTitle() does not return the window title anymore, but instead the Application name.

@desko27
Copy link

desko27 commented Jan 30, 2021

@mattallty I can confirm that window.getTitle is not working as expected in v2.2.4. Using macOS Big Sur. I'm sticking to v2.2.3 because of it.

@DYGidin
Copy link

DYGidin commented Apr 15, 2021

BTW, PR #51 fixed a segmentation fault, but now getTitle() does not return the window title anymore, but instead the Application name.

try to change file macos.mm
NSString *windowName = wInfo[(id)kCGWindowOwnerName]; to NSString *windowName = wInfo[(id)kCGWindowName]; after that recompile it.

@stephancasas
Copy link

@DYGidin This was exactly what I needed. In dev, I had to manually grant permissions to VSCode, but it's working excellently after applying that change. Thanks!

raphaelmenges added a commit to raphaelmenges/node-window-manager that referenced this issue Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform/macos
Projects
None yet
Development

No branches or pull requests

7 participants