mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-02 10:03:28 +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")]
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
Command::new("xdg-open")
|
Command::new("xdg-open")
|
||||||
.arg("~/.local/share/Trash/")
|
.arg("trash://")
|
||||||
.spawn()
|
.spawn()
|
||||||
.map_err(|err| error!("Error opening trash: {err:#?}"))?
|
.map_err(|err| error!("Error opening trash: {err:#?}"))?
|
||||||
.wait()
|
.wait()
|
||||||
|
|
Loading…
Reference in a new issue