We have been seeing various bugs caused by dbus session not launching in 
the correct order.
The current dbus session launching are done in different places 
depending on whether you are
running JDS/TJDS using dtlogin or gdm on Nevada or OpenSolaris. It is 
very confusing for
applications maintainer to know why their applications are not running 
correctly.

The patch attempts to make that dbus session startup in a single (two) 
place. One for gdm and
the other for dtlogin regardless of Nevada or OpenSolaris. [1].

The approach:

(1) gdm provides scripts interface directory /etc/X11/xinit/xinitrc.d
So I put in a script called 0005.dbus that launches dbus session when 
user login

(2) dtlogin provides scripts interface directory /usr/dt/config/Xsession.d
Same script called 0005.dbus that launches dbus session when user login

I attached diff the following spec files :
SUNWgnome-display-mgr.spec.diff - this marks the creation of the 
directory /etc/X11/xinit/xinitrc.d
SUNWdbus.spec.diff - actually putting 0005.dbus into 
/etc/X11/xinit/xinitrc.d (used by gdm)
SUNWgnome-dtlogin-integration.spec.diff - put 0005.dbus into 
/usr/dt/config/Xsession.d
                                                                       
also bumped tarball to remove calling dbus-launch.
0005.dbus - it checks for presence of dbus-launch and also 
DBUS_SESSION_BUS_ADDRESS
                   before lauching dbus session.

Thanks,

-Ghee
[1] Lots of inputs from Brian Cameron,Laca and Stephen Browne, it is 
with their insights that come with this patch.
(Of course Mike Oliver and Alan C also corrected my scripting any times).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: SUNWgnome-display-mgr.spec.diff
Type: text/x-patch
Size: 1188 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20081002/a64ebfbe/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SUNWdbus.spec.diff
Type: text/x-patch
Size: 1870 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20081002/a64ebfbe/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SUNWgnome-dtlogin-integration.spec.diff
Type: text/x-patch
Size: 2286 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20081002/a64ebfbe/attachment-0002.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005.dbus
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20081002/a64ebfbe/attachment.ksh>

Reply via email to