After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 545184 - removable medias mounted for every user logged
removable medias mounted for every user logged
Status: RESOLVED DUPLICATE of bug 573577
Product: nautilus
Classification: Core
Component: [obsolete] GIO
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-28 16:04 UTC by Sebastien Bacher
Modified: 2009-03-08 12:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Blank screen caused by mounting removable media in another session. (597.16 KB, image/png)
2008-12-31 00:09 UTC, Joey
Details

Description Sebastien Bacher 2008-07-28 16:04:09 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)"
Comment 1 Chris Coulson 2008-07-28 16:33:34 UTC
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.
Comment 2 Joey 2008-12-31 00:09:11 UTC
Created attachment 125554 [details]
Blank screen caused by mounting removable media in another session.
Comment 3 Joey 2008-12-31 00:10:46 UTC
I can confirm this behavior on Ubuntu 8.10.  I posted a screenshot.
Comment 4 Julien Valroff 2009-03-08 08:58:20 UTC
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
Comment 5 Josselin Mouette 2009-03-08 10:53:17 UTC
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.
Comment 6 Cosimo Cecchi 2009-03-08 11:02:13 UTC
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 ***
Comment 7 Julien Valroff 2009-03-08 12:44:14 UTC
Thanks for informing me - I have backported the patch for nautilus 2.24.2 and applied it - things work great now!

Cheers,
Julien