Re: [PATCH] avoid race condition in gvfs monitors when multiple users logged in



On Thu, May 23, 2013 at 11:54 PM, Anton V. Boyarshinov
<boyarsh altlinux org> wrote:

When multiple users logged in and have a gvfs monitros running,
inserting a media casuses a mounting for rundom user.
This patch implemets quering logind about session state and blocks
signals emiting when session is not active.

No. This is not the right way to fix your problem. I'm not going to
comment on your actual patch except to say that it's wrong on a number
of levels and it's a gross hack to "solve" this problem by avoiding to
emit signals. I'm not sure what your setup is like, but for your
information GNOME w/ udisks2 works just fine on multiple seats - only
sessions on the seat where the hardware is plugged in, will see the
device. And only the active session on a seat is authorized to mount
the device.

You should file bugs in bugzilla if things don't work like I described it above.

    David


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]