Hi Boram, Could you, please, elaborate a little bit on the problem you're facing.
Technically, as long as Xorg is launched inside a user session it will have the DBUS_SESSION_BUS_ADDRESS set by systemd, as explained Maciej previously. NB: for weston, if weston-launch is used, it's not true as weston-launch clears the environment before forking weston and thus doesn't propagate the DBUS_SESSION_BUS_ADDRESS. My patch would also handle this corner case; but it wasn't its main goal... Well, this leaves me with 2 questions, regarding a multiuser system: * why would we want to start xorg in a user session ? There's often only one GPU and the users must be able to share it :) * if it was started as a system component, why does Xorg would need to know the DBUS session address (of a particular user) ? 'app' is dead, so which user are we talking about ? I hope it's not 'guest' :) If you look at Tizen:Common/wayland images, you'll see that weston is started as a system daemon and by no way it's aware of DBUS session address(es). If we must make it aware of the user sessions, it could be interfaced with logind (or tlm, or whatever handles the user sessions)... Best regards, -- Stéphane Desneux Intel OTC - Vannes/FR gpg:1CA35726/DFA9B0232EF80493AF2891FA24E3A2841CA35726 On 01/11/2014 08:31, Boram Park wrote: > Dear Stephane > > Can I ask you something about your below patch? > > commit 32c04c79d76a4582669de4e39e8422ab5229e446 > Author: Stephane Desneux <[email protected]> > Commit: Stephane Desneux <[email protected]> > > add a small script in /etc/profile.d/dbus.sh to export > DBUS_SESSION_BUS_ADDRESS > > If the dbus session address is not defined, this small script will > try to > pick the address from the environment of the systemd --user process > for the current > user. > > Typically, this allows to log on a target through ssh, then run su - > <user> and > have the same environment as the shells inside the user session. > > Change-Id: Id6133077bf9943c4203f7d993b8942dc1455bef5 > Signed-off-by: Stephane Desneux <[email protected]> > > > I want to use DBUS_SESSION_BUS_ADDRESS in xserver side during launching > xserver. But I can't guess DBUS_SESSION_BUS_ADDRESS will be set before > xserver launches. Is there any package(process?) to set > DBUS_SESSION_BUS_ADDRESS during booting of target device? > > And, if there is it, is it possible that I can use > DBUS_SESSION_BUS_ADDRESS in xserver side? > > Thank you in advance > Boram _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
