mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 12:33:31 +00:00
Fix xdg-open
for Trash (#2547)
* fix Trash not opening * remove unnecessary unwrap * fix formatting errors
This commit is contained in:
parent
0cd993c699
commit
a88a9db5f0
|
@ -156,7 +156,7 @@ async fn open_trash_in_os_explorer() -> Result<(), ()> {
|
|||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
Command::new("xdg-open")
|
||||
.arg("~/.local/share/Trash/")
|
||||
.arg("trash://")
|
||||
.spawn()
|
||||
.map_err(|err| error!("Error opening trash: {err:#?}"))?
|
||||
.wait()
|
||||
|
|
Loading…
Reference in a new issue