Open Trash from Taskbar

I used to put a shortcut to the trash on the taskbar in Windows. When I tried to do the same thing in Zorin OS Core, I found out that I can open the trash box with the command nautilus trash:// from the terminal, and created a .desktop file like the following. It works in my environment, but is this the right way to do it?

[Desktop Entry]
Version=1.0
Type=Application
Name[ja]=ゴミ箱
Name=Trash
Icon=/usr/share/icons/Zorin/16x16/places/user-trash.svg
Exec=nautilus trash://
NoDisplay=false
Categories=Utility
StartupNotify=false
Terminal=false

Screenshot from 2022-10-17 21-36-21

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.