GNOME Bugzilla – Bug 545184
removable medias mounted for every user logged
Last modified: 2009-03-08 12:44:14 UTC
the bug has been described on https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/222643 "Binary package hint: gvfs If I have multiple users logged in to my machine at any one time (using fast-user-switch) - when I plug in a USB drive (or any removable device) or insert a CD, Nautilus opens a window on the desktop of every user logged in. If I unmount and remount the removable device several times (or eject and insert multiple CD's), I get one Nautilus window per mount/unmount (or per CD) appear on all the inactive users desktops. Unfortunately, because I run the NVIDIA binary drivers, all the Nautilus windows which appear on the inactive users desktop appear white, which can make the desktop virtually unusable when that user switches back to themselves again. Nautilus should only open a window on the active session. Steps to reproduce: 1) Log in user A 2) Using fast-user-switch, switch to user B 3) User B inserts a USB pen drive or CD. Nautilus appears. 4) Using fast-user-switch, switch back to user A - there is also a Nautilus window on user A's desktop (or, in my case - a white box)"
Just to comment - this happens with every action related to removable media (not just Nautilus/removable storage devices). For example, if you insert a DVD, then your media player (Totem in my case) is launched on every users desktop.
Created attachment 125554 [details] Blank screen caused by mounting removable media in another session.
I can confirm this behavior on Ubuntu 8.10. I posted a screenshot.
I can confirm this behaviour. This problem has been reported on the Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512824 - dvd when inserted plays on all concurrently logged-in users Cheers, Julien
My idea to fix that issue is to check whether the session is active and only initiate the mount (in nautilus-application.c) for active sessions. I guess this could be done either with X11 magic to detect the current console, or with ConsoleKit.
This has already been fixed in trunk some days ago, using ConsoleKit, as suggested by Josselin. Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 573577 ***
Thanks for informing me - I have backported the patch for nautilus 2.24.2 and applied it - things work great now! Cheers, Julien