Created
January 4, 2019 17:42
-
-
Save khanghh/0b0f4ba78ecc082aa0dd325ea6e546b6 to your computer and use it in GitHub Desktop.
/usr/share/trash.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Trash | |
GenericName=Trash | |
Exec=nautilus trash:/// | |
Icon=user-trash | |
Terminal=false | |
Type=Application | |
Actions=empty-trash; | |
[Desktop Action empty-trash] | |
Name=Empty Trash | |
Exec=bash -c 'zenity --question --width="350" --title="Empty all items from Trash?" --text="All items in the Trash will be permanently deleted." --ok-label="Empty Trash" --cancel-label="Cancel" 2> /dev/null && gio trash --empty' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment