mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-22 07:28:43 -04:00
Fix xdg-open for Trash (#2547)
* fix Trash not opening * remove unnecessary unwrap * fix formatting errors
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user