fix: Game detection improvements
Some checks failed
Queue Release Build / prepare (push) Successful in 27s
Deploy Web Apps / deploy (push) Successful in 10m8s
Queue Release Build / finalize (push) Has been cancelled
Queue Release Build / build-windows (push) Has been cancelled
Queue Release Build / build-linux (push) Has been cancelled
Some checks failed
Queue Release Build / prepare (push) Successful in 27s
Deploy Web Apps / deploy (push) Successful in 10m8s
Queue Release Build / finalize (push) Has been cancelled
Queue Release Build / build-windows (push) Has been cancelled
Queue Release Build / build-linux (push) Has been cancelled
This commit is contained in:
@@ -15,6 +15,7 @@ import * as path from 'path';
|
||||
import { fileURLToPath, pathToFileURL } from 'url';
|
||||
import {
|
||||
getDesktopSettingsSnapshot,
|
||||
readDesktopSettings,
|
||||
updateDesktopSettings,
|
||||
type DesktopSettings
|
||||
} from '../desktop-settings';
|
||||
@@ -58,6 +59,7 @@ import {
|
||||
openCurrentDataFolder
|
||||
} from '../data-management';
|
||||
import { listRunningProcessNames } from '../process-list';
|
||||
import { detectActiveGame } from '../game-detection';
|
||||
|
||||
const DEFAULT_MIME_TYPE = 'application/octet-stream';
|
||||
const FILE_CLIPBOARD_FORMATS = [
|
||||
@@ -325,6 +327,18 @@ export function setupSystemHandlers(): void {
|
||||
|
||||
ipcMain.handle('get-running-process-names', async () => await listRunningProcessNames());
|
||||
|
||||
ipcMain.handle('get-active-game-candidate', async () => await detectActiveGame());
|
||||
|
||||
ipcMain.handle('get-ignored-game-processes', () => {
|
||||
return readDesktopSettings().ignoredGameProcesses;
|
||||
});
|
||||
|
||||
ipcMain.handle('set-ignored-game-processes', (_event, list: unknown) => {
|
||||
const snapshot = updateDesktopSettings({ ignoredGameProcesses: Array.isArray(list) ? list : [] });
|
||||
|
||||
return snapshot.ignoredGameProcesses;
|
||||
});
|
||||
|
||||
ipcMain.handle('prepare-linux-screen-share-audio-routing', async () => {
|
||||
return await prepareLinuxScreenShareAudioRouting();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user