Comment 10 for bug 692444

Revision history for this message
Richard Dale (rdale) wrote : Re: clicking trash multiple times opens multiple instances of it.

I've been looking into this, and at the moment the trash file manager is launched with a g_app_info_launch_default_for_uri(TRASH_URI, NULL, &error) call. I don't think it is possible to detect whether or not a handler for the 'trash://' uri has already been launched. So it just starts up a new nautilus window every time.

A possible work round would be to simply have a desktop file called 'trash.desktop' with the trashcan icon, that had a line in it 'Exec: nautilus 'trash://'. That way the application would only be launched once as it would be just a normal app icon rather than something special cased.