update ip
This commit is contained in:
parent
f572b19942
commit
fdf6b84d3f
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user