sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
783 stars 161 forks source link

crashes on latest version of ubuntu and fedora( linux based systems) #181

Open shubhamy-metricoidtech opened 6 months ago

shubhamy-metricoidtech commented 6 months ago

crashes on latest version of ubuntu and fedora( linux based systems) throws below error on ubuntu 22.02 and fedora 39 before crashing in console:

Error occurred in handler for 'getactivewin': Error: spawn xwininfo ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn xwininfo',
  path: 'xwininfo',
  spawnargs: [ '-id', 83886083 ],
  cmd: 'xwininfo -id 83886083',
  stdout: '',
  stderr: ''
}
FATAL ERROR: tsfn_to_js_proxy napi_call_function