Devices should be automounted for only the active session

Bug #28336 reported by David Saxton
14
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
Medium
Jonathan Riddell

Bug Description

When several users are logged in (to KDE) on different x sessions (F7, F8, ...), and a device like a usb memory stick is
plugged into the computer, all sessions try to mount the device automatically. This leads to two problems:

* When switching to another session after using a device, there are now lots of konqueror windows open at the device
address (media:/blah), cluttering up the desktop.
* It is by luck whether the session that you are currently using gets to mount the device first. If a different session
mounts it first, then as a different user has mounted it, you cannot unmount it from your own session.

Resolution: Device automounting should only be attempted when the X session has focus.

Revision history for this message
Martin Pitt (pitti) wrote :

This is the KDE pendant to bug 10581.

Revision history for this message
Timo Reimann (timo.reimann) wrote :

I can definitely confirm all parts of this issue that the OP mentioned on Ubuntu Breezy.

I frequently share my box with another user, having both of us logged in simulateneously using the "switch user" option.

The rule that determines which user becomes owner of the mounted device (CD-ROM, USB storage device) seems to be completely random, e.g. today I put a disc into my drive two times in a row and each time the ownership rights switched.

This bug shows up with different desktop managers, too, i.e. one user using GNOME while the other uses KDE.

Revision history for this message
Carthik Sharma (carthik) wrote :

Bug #10581 has been resolved. So does this issue still affect you with Edgy Beta or the latest uptodate dapper?

Thanks in advance.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

This is still a problem with up-to-date Edgy. The current session loads the devices as normal (perhaps luck of the draw, perhaps not), but the other session still tries to load them. It fails, so it mounts a CD read-only and shows my USB stick as an ordinary folder on the desktop.

Weird.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :
Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Device notification in Intrepid is much less aggressive.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.