mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
feat(desktop): portal-based Linux global shortcuts and PTT (#3185)
This commit is contained in:
1 parent
5799ef705d
commit
8f58fcc4c4
149 files changed
+26849
-8769
No files matched your search
@@ -14,11 +14,10 @@ import {buildFluxerAudioExcludePatterns, isFluxerAudioNode} from '@electron/main
|
||||
import {getLinuxPortalsMode, getNativeAudioMode} from '@electron/main/LaunchOptions';
|
||||
import {
|
||||
isDBusObjectPathSegment,
|
||||
isWaylandSessionEnv,
|
||||
isX11SessionEnv,
|
||||
isX11WindowToken,
|
||||
parseWindowSourceToken,
|
||||
} from '@electron/main/LinuxAudioCaptureHelpers';
|
||||
import {isWaylandSession, isX11Session} from '@electron/main/LinuxSession';
|
||||
import {
|
||||
isValidVirtmicLinkOptions,
|
||||
isValidVirtmicNodeList,
|
||||
@@ -333,14 +332,6 @@ function startVirtmicSystem(exclude: unknown, options: unknown = {}): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
function isX11Session(): boolean {
|
||||
return isX11SessionEnv(process.env);
|
||||
}
|
||||
|
||||
function isWaylandSession(): boolean {
|
||||
return isWaylandSessionEnv(process.env);
|
||||
}
|
||||
|
||||
async function resolveWindowPidViaX11(xid: string): Promise<number | null> {
|
||||
if (getLinuxPortalsMode(process.argv) === 'off') return null;
|
||||
const portals = requireModule('@fluxer/linux-portals') as {
|
||||
|
||||
Reference in new issue
Block a user