You've already forked AstralRinth
forked from didirus/AstralRinth
Fix correctly show in folder (#238)
This commit is contained in:
@@ -50,17 +50,7 @@ pub fn show_in_folder(path: String) -> Result<()> {
|
|||||||
};
|
};
|
||||||
Command::new("xdg-open").arg(&new_path).spawn()?;
|
Command::new("xdg-open").arg(&new_path).spawn()?;
|
||||||
} else {
|
} else {
|
||||||
Command::new("dbus-send")
|
Command::new("xdg-open").arg(&path).spawn()?;
|
||||||
.args([
|
|
||||||
"--session",
|
|
||||||
"--dest=org.freedesktop.FileManager1",
|
|
||||||
"--type=method_call",
|
|
||||||
"/org/freedesktop/FileManager1",
|
|
||||||
"org.freedesktop.FileManager1.ShowItems",
|
|
||||||
format!("array:string:\"file://{path}\"").as_str(),
|
|
||||||
"string:\"\"",
|
|
||||||
])
|
|
||||||
.spawn()?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user