update ip

This commit is contained in:
CptCaptain 2020-09-14 20:31:30 +02:00
parent f572b19942
commit fdf6b84d3f

View File

@ -16,7 +16,8 @@ struct Video {
fn new(video: Form<Video>) -> Redirect {
if video.link.starts_with("https://"){
Command::new("/bin/env")
.args(&["DISPLAY:=0", "bash", "-c", &format!("mpv {link}", link=&video.link).to_string()])
// .args(&[&video.link])
.args(&["DISPLAY=:0", "bash", "-c", &format!("mpv {link}", link=&video.link).to_string()])
.output()
.expect("Failed to execute command");
}