diff --git a/src/appimaged/desktop.go b/src/appimaged/desktop.go index 22a72c48..4507e655 100644 --- a/src/appimaged/desktop.go +++ b/src/appimaged/desktop.go @@ -123,6 +123,9 @@ func writeDesktopFile(ai AppImage) { } else if helpers.IsCommandAvailable("kioclient") { // Of course KDE has its own facility for doing the exact same thing cfg.Section("Desktop Action Trash").Key("Exec").SetValue("kioclient move \"" + ai.path + "\" trash:/") + } else { + // Provide a fallback shell command to prevent parser errors on other desktops + cfg.Section("Desktop Action Trash").Key("Exec").SetValue("mv \"" + ai.path + "\" ~/.local/share/Trash/") } // Add OpenPortableHome action