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):
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