If you are a long-time Windows user who has recently moved to Linux, you may want the familiar trash can on your desktop like you had in Windows. The Trash icon is available in Ubuntu, but it is not visible by default.

Adding the Trash icon in Gnome

If you are using the Gnome environment, press Alt+F2 to access the Run Application dialog box. Click Run.

Run Application dialog box

The Configuration Editor displays. In the tree in the left pane, navigate to the apps / nautilus / desktop option.

Selecting the trash_icon_visible option

In the right pane, select the check box next to trash_can_visible. Click the X button in the upper, right corner of the Configuration Editor dialog box to close it.

Closing the Configuration Editor

The Trash icon now displays on your desktop.

Gnome desktop with Trash Can icon

Adding the Trash icon in KDE

Adding the Trash icon in KDE is a different from adding it in Gnome.

From the K menu, select Computer.

Selecting Computer on the K menu

Then, right-click on the Trash option, and select Add to Desktop from the pop-up menu.

Adding the Trash icon to the KDE desktop

The Trash icon displays on your desktop.

The Trash icon on the KDE desktop

Emptying the Trash in Gnome

Emptying the trash in Gnome is a straightforward task. It works just like the recycle bin in Windows.

Right-click on the Trash icon on the Gnome desktop.

Emptying the Trash in Gnome

Emptying the Trash in KDE

Emptying the Trash in KDE is another story. After doing some research, we discovered that some the Empty Trash option is available for some people, but not for others. We found a workaround for situations where this option is not available.

NOTE: KDE is meant more for developers than Gnome. Some convenience features for everyday users may not work as simply as in Gnome. KDE stands for “K Development Environment.”

Once you have deleted a file, double-click on the Trash icon on your desktop.

The Trash icon on the KDE desktop

Dolphin opens with the Trash folder active.

The Trash folder in Dolphin

To permanently delete the file, select it in the Trash folder and press the Del key. The Delete Files dialog displays.

Delete Files dialog in Dolphin

Click Delete to remove the file.

NOTE: The Trash icon on the desktop may still display as if there are items in the Trash. As long as no files are in the Trash folder in Dolphin, the Trash is empty.

by Lori Kaufman