linuxmint/Cinnamon — Issue #184: Trashcan applet doesn't empty
Author: leigh123linux
Created: 2012-01-22 17:37:11+00:00
State: open

Trashcan applet doesn't empty on fedora unless it's patched

--- a/files/usr/share/cinnamon/applets/trash@cinnamon.org/applet.js	2012-01-19 06:41:06.000000000 +0000
+++ b/files/usr/share/cinnamon/applets/trash@cinnamon.org/applet.js	2012-01-19 17:57:48.003748398 +0000
@@ -48,8 +48,9 @@ MyApplet.prototype = {
try {
this.set_applet_icon_name("user-trash");
this.set_applet_tooltip(_("Trash"));
-
- this.trash_directory = Gio.file_new_for_path(GLib.get_home_dir() + "/.local/share/Trash/files");
+
+ this.trash_path = 'trash:///';
+ this.trash_directory = Gio.file_new_for_uri(this.trash_path);
this.trash_info_directory = Gio.file_new_for_path(GLib.get_home_dir() + "/.local/share/Trash/info");

this.empty_item = new PopupMenuItem(_('Empty Trash'), Gtk.STOCK_REMOVE, Lang.bind(this, this._emptyTrash));