Skip to content

Commit

Permalink
feat: make xauth work for all displays
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Oct 27, 2024
1 parent d8582e8 commit 96187c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/xauth.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::process::{Command, Stdio};
use std::env::var;

pub fn make_xauth() {
let display = ":0";
let display = var("DISPLAY").unwrap();
let xauth_file = "/tmp/.X11-unix/Xauthority";

let xauth_child = Command::new("xauth")
Expand Down

0 comments on commit 96187c7

Please sign in to comment.