From 6460349fc779c61e27b6ebdf0afd807d1ed60823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=93=D0=BB=D0=B0=D0=B7=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Thu, 15 Jan 2026 19:47:44 +0300 Subject: [PATCH] Bump version to 0.5.7 and update screen capture handler to use system picker --- package.json | 2 +- src/utils/window.js | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index d134c3c..81ef7af 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cheating-daddy", "productName": "cheating-daddy", - "version": "0.5.6", + "version": "0.5.7", "description": "cheating daddy", "main": "src/index.js", "scripts": { diff --git a/src/utils/window.js b/src/utils/window.js index 941b5b7..c461cb7 100644 --- a/src/utils/window.js +++ b/src/utils/window.js @@ -33,14 +33,11 @@ function createWindow(sendToRenderer, geminiSessionRef) { }); const { session, desktopCapturer } = require('electron'); - - // Setup display media request handler for screen capture - // Use system picker on all platforms to let user choose screen/window and audio session.defaultSession.setDisplayMediaRequestHandler( (request, callback) => { - // Don't call callback - let system picker handle the selection - // The system will call callback with user's choice - console.log('Showing system screen picker dialog...'); + desktopCapturer.getSources({ types: ['screen'] }).then(sources => { + callback({ video: sources[0], audio: 'loopback' }); + }); }, { useSystemPicker: true } );