Skip to content

Commit

Permalink
Remove chdir("/") that was present in x11_clipboard::ClipboardContext…
Browse files Browse the repository at this point in the history
…Setter::new, as it was causing issues in Servo

http://logs.glob.uno/?c=mozilla%23servo&s=9+Oct+2015&e=10+Oct+2015#c279844
  • Loading branch information
aweinstock314 committed Oct 10, 2015
1 parent ca32bcf commit ef4cf77
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/x11_clipboard.rs
Expand Up @@ -233,11 +233,6 @@ impl ClipboardContextSetter {
return Err(err("XExtendedMaxRequestSize/XMaxRequestSize"));
}

// chdir to / in case the directory of the program is removed/unmounted
if let Err(_) = set_current_dir(Path::new("/")) {
return Err(err("set_current_dir"));
}

Ok(ClipboardContextSetter {
display: dpy,
window: win,
Expand Down

0 comments on commit ef4cf77

Please sign in to comment.