On Sun, Jun 24, 2012 at 02:24:18PM +0200, Matthieu Herrb wrote: > On Sun, Jun 24, 2012 at 10:13:33AM +0200, Antoine Jacoutot wrote: > > So, open a terminal then: > > $ eval `dbus-launch --auto-syntax` > > $ emacs > > ... > > Maybe it's time to add something like that in the default session > scripts (untested):
That's exactly what I documented under ports/x11/dbus/pkg/README so I cannot say I am not all for it ;-) That said, I didn't want to be the one pushing it because people would have yelled that I am trying to enforce stuffs on everyone because of gnome (of course nothing to do with gnome but people tend to blame gnome each time they have an issue with a gtk app). So obviously OK for me but I don't think my vote counts. > Index: app/xinit/xinitrc.cpp > =================================================================== > RCS file: /cvs/OpenBSD/xenocara/app/xinit/xinitrc.cpp,v > retrieving revision 1.6 > diff -u -r1.6 xinitrc.cpp > --- app/xinit/xinitrc.cpp 19 Mar 2011 15:40:02 -0000 1.6 > +++ app/xinit/xinitrc.cpp 24 Jun 2012 12:23:20 -0000 > @@ -51,6 +51,11 @@ > ssh-add < /dev/null > fi > > +if test -x /usr/local/bin/dbus-launch -a -z "$DBUS_SESSION_BUS_ADDRESS" ; > then > + ## if not found, launch a new one > + eval `dbus-launch --sh-syntax --exit-with-session` > +fi > + > XCOMM start some nice programs > > XCLOCK -geometry 50x50-1+1 & > Index: app/xdm/config/Xsession.cpp > =================================================================== > RCS file: /cvs/OpenBSD/xenocara/app/xdm/config/Xsession.cpp,v > retrieving revision 1.9 > diff -u -r1.9 Xsession.cpp > --- app/xdm/config/Xsession.cpp 3 Dec 2011 13:46:00 -0000 1.9 > +++ app/xdm/config/Xsession.cpp 24 Jun 2012 12:23:20 -0000 > @@ -101,6 +101,9 @@ > exec `eval $XDESKTOP` > } > #endif > + if [ -x /usr/local/bin/dbus-launch ]; then > + eval `dbus-launch --sh-syntax --exit-with-session` > + fi > BINDIR/xterm & > BINDIR/fvwm > fi > > -- > Matthieu Herrb -- Antoine
