I should stress that don’t have to use the command line to do this task If you install the GNOME Extension Preps tool you get access to the DING desktop extension’s full roster of settings via a GUI. However, in this instance I think the CLI is the quicker option. See More
How to Put the Trash Can on the Desktop in Ubuntu 22.04
How to Put the Trash Can on the Desktop in Ubuntu 22.04,
How do I show trash on Ubuntu desktop,
How do I put trash on my desktop,
Where is Ubuntu ,