Skip to content

Instantly share code, notes, and snippets.

@khanghh
Created January 4, 2019 17:42
Show Gist options
  • Save khanghh/0b0f4ba78ecc082aa0dd325ea6e546b6 to your computer and use it in GitHub Desktop.
Save khanghh/0b0f4ba78ecc082aa0dd325ea6e546b6 to your computer and use it in GitHub Desktop.
/usr/share/trash.desktop
[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