In data martedì 21 gennaio 2020 19:56:10 CET, Andrei Borzenkov ha scritto:
21.01.2020 21:10, Andrei Borzenkov пишет:
21.01.2020 17:46, stakanov пишет:
In data martedì 21 gennaio 2020 14:43:22 CET, Andrei Borzenkov ha scritto:
On Tue, Jan 21, 2020 at 4:32 PM stakanov <stakanov@eclipso.eu> wrote:
I hope now that the problematic became somewhat clearer.
I still miss desktop environment for each user and openSUSE version, as well as how exactly you start multiple sessions.
My bad, as I am always on the "KDE is default thought". Multiple session are started from KDE with sddm as session manager and "start new session". However I do never start multiple sessions for the same user. /home is on a separate partition see also below the listing of devices.> I tested on Leap 15.1 with XFCE + lightdm. I added custom polkit rule to force root authentication for active session. I switched user using dm-tool switch-to-user (I did not find XFCE GUI element for it). dm-tool talks to lightdm and makes it allocate new session or switch to existing one.
I logged in as user u1, u2, u3, then switched to u2 session and checked that u2 session was active. After inserting USB stick I got password request for u2. I checked process list that there was just one active password request. After cancelling this request it was started for another user. In this case it was u3. Switching to u3 and cancelling request now started request for u1.
So it seems to basically work as expected.
Or may be our expectations are wrong actually.
I do not know how exactly requests are ordered (it was new to me that request would be cycled across all current sessions).
There is no "request that cycles". Monitoring org.freedesktop.UDisks2 address - when USB stick is inserted there are *three* mount requests from each session. These request are sent to the same D-Bus destination and so retrieved sequentially. If the first mount request succeeds, two others simply fail (you just do not see it). If the first request is cancelled, udisksd attempts to mount again when it starts processing next request.
I do not think order of mount requests is predictable. It may be deterministic for a given system configuration, but it may change at any point (e.g. after kernel update).
So either udisksd need to (optionally) reject mount request from non-active session or desktop environment need to ignore new device when session is not active and not send mount request. Whether something like this can be configured in KDE (or any other desktop environment for this matter) I do not know. For sure there must be some mechanism that rules this, because the problem I face, I "just" face it on this installation. Although it is true that I use this very extensively compared with other machines. I could ask on the kde list. I would therefore like to ask you for your permission to cite this email exchange, evtl with some text excerpts from here. If you do not bother, obviously.
_________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postf�cher sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org