We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd62577 commit e15a496Copy full SHA for e15a496
2 files changed
crates/muvm/src/bin/muvm.rs
@@ -301,7 +301,7 @@ fn main() -> Result<()> {
301
302
// Forward the native X11 display into the guest as a socket
303
if let Ok(x11_display) = env::var("DISPLAY") {
304
- if let Some(x11_display) = x11_display.strip_prefix(":") {
+ if let Some(x11_display) = x11_display.strip_prefix(':') {
305
let socket_path = Path::new("/tmp/.X11-unix/").join(format!("X{}", x11_display));
306
if socket_path.exists() {
307
let socket_path = CString::new(
crates/muvm/src/guest/x11.rs
@@ -21,7 +21,7 @@ where
21
Err(_) => return Ok(()),
22
};
23
24
- if !host_display.starts_with(":") {
+ if !host_display.starts_with(':') {
25
return Err(anyhow!("Invalid host DISPLAY"));
26
}
27
let host_display = &host_display[1..];
0 commit comments