feat(desktop): add WSL backend mode (#12914)

This commit is contained in:
Brendan Allan 2026-02-11 15:49:48 +08:00 committed by GitHub
commit 213a87234d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 688 additions and 352 deletions

View file

@ -57,6 +57,12 @@ export type Platform = {
/** Set the default server URL to use on app startup (platform-specific) */
setDefaultServerUrl?(url: string | null): Promise<void> | void
/** Get the configured WSL integration (desktop only) */
getWslEnabled?(): Promise<boolean>
/** Set the configured WSL integration (desktop only) */
setWslEnabled?(config: boolean): Promise<void> | void
/** Get the preferred display backend (desktop only) */
getDisplayBackend?(): Promise<DisplayBackend | null> | DisplayBackend | null