screenshots icon indicating copy to clipboard operation
screenshots copied to clipboard

does this bug(linux截图存在黑屏) exist on windows platform ?

Open bruceauyeung opened this issue 2 years ago • 1 comments

https://github.com/nashaofu/screenshots/blob/8aac49fe094f388a9e3ffabf6746a9160af8ab98/packages/electron-screenshots/src/screenshots.ts#L48

    ipcMain.once('SCREENSHOTS::CAPTURED', () => {
      if (!this.$win) return
      // linux截图存在黑屏,这里设置为false就不会出现这个问题
      this.$win.setFullScreen(true)
      this.$win.show()
      this.$win.focus()
    })
  }

// linux截图存在黑屏,这里设置为false就不会出现这个问题 Is this problem caused by wrong-behaved invocation of desktopCapturer.getSources() ? if true which of the following cases encountered? : 1, empty thumbnail returned ? 2, none display matched with specified display ? 3, renderer browser window crashed or hung? 4, main process crashed or hung?

and, is it posible that this problem happen on windows platform ?

IIUC possible related issues of electron : BrowserWindow.setFullScreen frequently crashes electron https://github.com/electron/electron/issues/23395 desktopCapturer entire screen not working and some of the screens thumbnails broken https://github.com/electron/electron/issues/28426 desktopCapturer.getSources returns empty thumbnails https://github.com/electron/electron/issues/24412 calling desktopCapturer.getSources() freezes all renderer processes for an instance https://github.com/electron/electron/issues/8246

@nashaofu

bruceauyeung avatar Nov 26 '21 02:11 bruceauyeung

The latest version does not support the Wayland Linux,The new version is trying to use node-screenshots to capture screen. image

nashaofu avatar May 27 '22 15:05 nashaofu