Skip to content

Instantly share code, notes, and snippets.

@raulmoyareyes
Last active August 4, 2020 19:15
Show Gist options
  • Save raulmoyareyes/9235903121f0b17529bd to your computer and use it in GitHub Desktop.
Save raulmoyareyes/9235903121f0b17529bd to your computer and use it in GitHub Desktop.
Create trash in elementaryOS

Launch this command in your temrminal

sudo subl /usr/share/applications/trash.desktop

Copy and paste this text in sublime text and save the file.

[Desktop Entry]
Comment=Contiene los archivos eliminados
EmptyIcon=emptytrash
Exec=pantheon-files trash:/
Icon=user-trash-full
Name=Papelera
Terminal=false
StartupNotify=true
Type=Application
MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;
Categories=System;Utility;Core;GTK;FileTools;FileManager;

X-Ayatana-Desktop-Shortcuts=EmptyTrash

[EmptyTrash Shortcut Group]
Name=Vaciar papelera
Exec=rm -r /home/USERXX/.local/share/Trash/files && rm -r /home/USERXX/.local/share/Trash/info
TargetEnvironment=Unity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment