[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Fwd: User bus conclusion
From:       Thiago Macieira <thiago () kde ! org>
Date:       2010-11-09 23:29:32
Message-ID: 201011100029.33530.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


D-Bus community is proposing to do away with the session bus and replace it 
with a user bus. Long story short, this means that multiple logins of the same 
user are not allowed by construction.

Is this something we allow or even support in KDE?

My first reaction to Ryan's email was to say that we do not want the new 
feature. Services like KWallet would show the password dialog in possibly the 
wrong X display, klauncher-launched applications would show up in the wrong X 
display, etc., so it would be unusable.

However, on second thought, I came to the conclusion that running two 
instances of kwalletd would be a problem of itself: the two wallets trying to 
have write access at the same time could end up stepping over each other's 
toes, causing data loss (one of the instance's changes or, worse, all of the 
data).

So I have to ask again: do we allow or support multiple logins of the same 
user, on the same machine (same $HOME)?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["forwarded message" (message/rfc822)]

Return-Path: <dbus-bounces+thiago=kde.org@lists.freedesktop.org>
Received: from localhost ([unix socket])
	 by nargothrond (Cyrus v2.3.14-Mandriva-RPM-2.3.14-1mdv2009.1) with LMTPA;
	 Tue, 09 Nov 2010 23:17:57 +0100
X-Sieve: CMU Sieve 2.3
Received: from ktown.kde.org (ktown.kde.org [131.246.120.250])
	by nargothrond.macieira.info (Postfix) with SMTP id 3AF5474D2
	for <thiago-kde@macieira.info>; Tue,  9 Nov 2010 23:17:37 +0100 (CET)
Received: (qmail 2224 invoked by uid 1055); 9 Nov 2010 22:17:23 -0000
Delivered-To: kde.org-thiago@kde.org
Received: (qmail 1915 invoked from network); 9 Nov 2010 22:16:20 -0000
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ktown.kde.org
Received: from unknown (HELO gabe.freedesktop.org) (131.252.210.177)
  by ktown.kde.org with SMTP; 9 Nov 2010 22:16:19 -0000
Received: from gabe.freedesktop.org (localhost [127.0.0.1])
	by gabe.freedesktop.org (Postfix) with ESMTP id E48759E765
	for <thiago@kde.org>; Tue,  9 Nov 2010 14:15:50 -0800 (PST)
X-Original-To: dbus@lists.freedesktop.org
Delivered-To: dbus@lists.freedesktop.org
X-Greylist: delayed 534 seconds by postgrey-1.31 at gabe;
	Tue, 09 Nov 2010 14:15:39 PST
Received: from mail.desrt.ca (manic.desrt.ca [207.192.74.61])
	by gabe.freedesktop.org (Postfix) with ESMTP id A95239E765
	for <dbus@lists.freedesktop.org>; Tue,  9 Nov 2010 14:15:39 -0800 (PST)
Received: from [172.16.0.102] (unknown [207.245.236.60])
	by manic.desrt.ca (Postfix) with ESMTPSA id DE60C87CB
	for <dbus@lists.freedesktop.org>; Tue,  9 Nov 2010 17:06:44 -0500 (EST)
Subject: User bus conclusion
From: Ryan Lortie <desrt@desrt.ca>
To: dbus@lists.freedesktop.org
Date: Tue, 09 Nov 2010 17:06:42 -0500
Message-ID: <1289340402.23860.52.camel@velocity>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) 
X-BeenThere: dbus@lists.freedesktop.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <dbus.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dbus>,
	<mailto:dbus-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/dbus>
List-Post: <mailto:dbus@lists.freedesktop.org>
List-Help: <mailto:dbus-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dbus>,
	<mailto:dbus-request@lists.freedesktop.org?subject=subscribe>
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: dbus-bounces+thiago=kde.org@lists.freedesktop.org
Errors-To: dbus-bounces+thiago=kde.org@lists.freedesktop.org
X-DSPAM-Result: Whitelisted
X-DSPAM-Processed: Tue Nov  9 23:17:57 2010
X-DSPAM-Confidence: 0.9995
X-DSPAM-Improbability: 1 in 187189 chance of being spam
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 4cd9c89529081516810197
X-UID: 2881
X-Length: 5704

Hi,

At the Boston summit I had a chance to sit down with Lennart and discuss
the mess we've been going over for the past while.  We came to a strong
conclusion on all points.

We also discussed the conclusion we reached with some others in
attendence and got some rather positive feedback.  I'm going to attempt
to document the conclusion here, but I may get some things wrong or
leave some things out.

The most significant take away is that we will add a "user" bus to DBus.
This bus will be defined as scoped to one user on one machine.  Multiple
logins of the user to the same machine will share the same bus.  systemd
will be managing this.

The bus will listen at a well-known path relative to the user's runtime
directory.  See:

http://lists.freedesktop.org/archives/xdg-list/2010-November/011681.html

The path will be "$XDG_RUNTIME_DIR/dbus/user_bus_socket".

In systemd style, the user bus won't be started until someone actually
tries to the connect to the socket.  If you ssh in, for example,
probably DBus won't be started, but if you try to use it then it will.

DBus client libraries should add knowledge of this new bus type.


That's it in terms of changes to DBus.  What follows is a list of
changes that we recommend will occur to the system as a result.  Of
course, that's up to vendors and distributors.

 - we recommend the session bus will no longer be started

 - we recommend that the DBUS_SESSION_BUS_ADDRESS environment variable
   be set to the socket of the user bus (to support old DBus client
   libraries and/or applications)

 - maybe eventually DBus client libraries can issue deprecation warnings
   to stderr about session bus use by applications

 - the DISPLAY environment variable will be unset

   It needs to be this way when you consider that X may not be running
   at all when the user dbus first starts (in response to an ssh
   session, for example).

 - libX11 (and xcb?) will be modified so that an unset DISPLAY
   environment variable means that the client opens the socket
   "$XDG_RUNTIME_DIR/X11/socket" or such.

   This has the nice effect that we can use systemd to autostart a
   rootless X server on-demand in our post-wayland existence.

 - on login (for now) this will be a symlink to the one in /tmp

 - we are against people doing tricks like "org.domain.MyApp1",
   "org.domain.MyApp2", etc. to support app uniqueness on multiple
   displays.

All of this means that there is only one graphical login per user.

I think Lennart is planning to do most of the work and I'm going to be
helping with some small details; I've already made a couple of
glib/GDBus patches, for example.

Cheers

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic