master
Pietro Brenna 2020-05-10 14:02:23 +02:00
parent 18cc1d27c5
commit ea5525c7d1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ dbus_class!("net.ddns.chiocciolo.waydrop.term", class Term (tx: Sender<RpcComman
fn toggle(&this) -> bool{
this.tx.send(RpcCommand::Toggle).is_ok()
}
fn run_shell(&this, cwd: String, shell: Vec<String>) -> bool {
let cwd = if cwd != "" {Some(cwd)} else {None };
this.tx.send(RpcCommand::RunShell{cwd, shell}).is_ok()