Interesting suggestion Richard! However, for it to be really portable the desktop file should not invoke nautilus directly (the user may have another file manager of choice), but rather xdg-open. `xdg-open trash://` should just do the right thing. Alas, I seriously doubt the launcher, through bamf, will be able to match whatever window opens as a result to the trash. It would be worth a try though, there may be an elegant solution to this problem that I’m overlooking.
Also note how the implementation proposed by Stefano for unity addresses the problem (have a look at the pending merge request, it contains detailed explanations). It does have a weak point, but it’s an original way of tackling the problem, you may be able to get inspiration from it and perfect it ;)
Interesting suggestion Richard! However, for it to be really portable the desktop file should not invoke nautilus directly (the user may have another file manager of choice), but rather xdg-open. `xdg-open trash://` should just do the right thing. Alas, I seriously doubt the launcher, through bamf, will be able to match whatever window opens as a result to the trash. It would be worth a try though, there may be an elegant solution to this problem that I’m overlooking.
Also note how the implementation proposed by Stefano for unity addresses the problem (have a look at the pending merge request, it contains detailed explanations). It does have a weak point, but it’s an original way of tackling the problem, you may be able to get inspiration from it and perfect it ;)