1
0
Fork 0
forked from wry/wry

all: mark env::set_var/remove_var unsafe

This commit is contained in:
Julian Orth 2024-10-20 18:43:51 +02:00
parent 73a6e0d5c2
commit a0984a1205
2 changed files with 18 additions and 10 deletions

View file

@ -20,7 +20,9 @@ pub fn main(global: GlobalArgs, args: RunPrivilegedArgs) {
let mut path = PathBuf::from(xrd);
path.push(&wd);
if path.exists() {
std::env::set_var(WAYLAND_DISPLAY, &wd);
unsafe {
std::env::set_var(WAYLAND_DISPLAY, &wd);
}
}
}
let mut argv = UstrPtr::new();