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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/692444

Title:
  clicking trash multiple times opens multiple instances of it.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to