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 573577 - media insertion handler runs even if user switching has put another account in the foreground
media insertion handler runs even if user switching has put another account i...
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
2.24.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 545184 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-02-28 21:13 UTC by Brad Midgley
Modified: 2009-03-08 11:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Brad Midgley 2009-02-28 21:13:56 UTC
Please describe the problem:
The computer has three or four people logged in. We've used user switching to change between them. When media is inserted, all four instances of nautilus try to play it at once. Inserting a dvd, for example, and four media players are suddenly all playing it.

A workaround is for everyone to disable media handling entirely.

Steps to reproduce:
1. start up several user sessions
2. insert dvd
3. multiple players are running


Actual results:
each account has a media player trying to run the same dvd

Expected results:
only the nautilus running for the foreground user should do media handling

Does this happen every time?
yes

Other information:
Comment 1 Cosimo Cecchi 2009-03-02 16:49:26 UTC
CC-ing Davidz, as he wrote the autorun code.
Comment 2 Cosimo Cecchi 2009-03-03 13:57:24 UTC
I fixed this in trunk.

2009-03-03  Cosimo Cecchi  <cosimoc@gnome.org>

	* src/nautilus-application.c (nautilus_application_finalize),
	(ck_session_active_changed_cb), (ck_call_is_active_cb),
	(ck_get_current_session), (do_initialize_consolekit),
	(ck_get_current_session_cb), (finish_startup),
	(mount_added_callback):
	* src/nautilus-application.h: use ConsoleKit to find out whether
	we are on the currently active session. If we don't, inhibit autorun
	dialogs (#573577).
Comment 3 Cosimo Cecchi 2009-03-08 11:02:13 UTC
*** Bug 545184 has been marked as a duplicate of this bug. ***