mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 17:53:48 +02:00
Adding keyboard shortcut for direct access + Fixes for Linux clipboard reading (#1479)
* feat: add ctrl+d keyboard shortcut to open direct access * fix: make sure direct access promt only get shown once * fix: linux clipboard acess on non x11 systems xclip not present on all linux machines: using the electron mechanism instead
This commit is contained in:
@@ -11,6 +11,7 @@ const {
|
||||
nativeImage
|
||||
} = require('electron');
|
||||
const { spawn, spawnSync } = require('child_process');
|
||||
const { clipboard } = require('electron');
|
||||
const fs = require('fs');
|
||||
const https = require('https');
|
||||
|
||||
@@ -262,6 +263,9 @@ ipcMain.handle(
|
||||
ipcMain.handle('app:getArch', () => {
|
||||
return process.arch.toString();
|
||||
});
|
||||
ipcMain.handle('app:getClipboardText', () => {
|
||||
return clipboard.readText();
|
||||
});
|
||||
|
||||
ipcMain.handle('app:getNoUpdater', () => {
|
||||
return noUpdater;
|
||||
|
||||
Reference in New Issue
Block a user