Desktop: Add support for opening files through the already-running instance via a local socket (#4123)

* Desktop: Forward file-open args from a second launch to the running instance

Also adds socket infrastructure that can be used in the future to allow dispatching actions from another process

* Use socket instead of ipc terminologie

* Fix

* Fix

* Better pipe name on windows
This commit is contained in:
Timon
2026-05-09 18:11:44 +00:00
committed by GitHub
parent a28b9437aa
commit 98daa75c26
10 changed files with 260 additions and 83 deletions
Generated
+32
View File
@@ -1210,6 +1210,12 @@ dependencies = [
"libloading 0.8.8",
]
[[package]]
name = "doctest-file"
version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2db04e74f0a9a93103b50e90b96024c9b2bdca8bce6a632ec71b88736d3d359"
[[package]]
name = "document-features"
version = "0.2.11"
@@ -2075,6 +2081,7 @@ dependencies = [
"glam",
"graphite-desktop-embedded-resources",
"graphite-desktop-wrapper",
"interprocess",
"lzma-rust2",
"muda",
"objc2 0.6.3",
@@ -2695,6 +2702,19 @@ dependencies = [
"wgpu-executor",
]
[[package]]
name = "interprocess"
version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "069323743400cb7ab06a8fe5c1ed911d36b6919ec531661d034c89083629595b"
dependencies = [
"doctest-file",
"libc",
"recvmsg",
"widestring",
"windows-sys 0.61.2",
]
[[package]]
name = "io-uring"
version = "0.7.10"
@@ -4370,6 +4390,12 @@ dependencies = [
"font-types 0.11.0",
]
[[package]]
name = "recvmsg"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3edd4d5d42c92f0a659926464d4cce56b562761267ecf0f469d85b7de384175"
[[package]]
name = "redox_syscall"
version = "0.5.17"
@@ -6613,6 +6639,12 @@ dependencies = [
"web-sys",
]
[[package]]
name = "widestring"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"
[[package]]
name = "winapi"
version = "0.3.9"