[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFR: python-secretstorage



On 22/06/12 11:27, Thomas Kluyver wrote:
> I recently did a wrapper for the dbus desktop notifications API

> 5 	# This is needed on buildd so that dbus can use ~/.dbus
> 6 	export HOME = $(CURDIR)

FYI this shouldn't be necessary on Linux if you're either under X or
running dbus-daemon manually, but it's still needed on kFreeBSD and
probably Hurd, even if you run dbus-daemon manually.

(It's needed on kFreeBSD because dbus supports Linux
credentials-passing, but not FreeBSD credentials-passing; so it falls
back to proving its uid by writing a "cookie" to a well-known location
in $HOME.)

> PYTHONS="$(PYTHON2) $(PYTHON3)" xvfb-run -a debian/runtests.sh

You don't need X for D-Bus if you run a dbus-daemon yourself.
tools/with-session-bus.sh in src:telepathy-glib and other Telepathy
packages is a relatively simple way to achieve that: run it like this:

    with-session-bus.sh --session -- debian/runtests.sh

I want to add a new "dbus-run-session" tool to dbus itself[1], which is
basically with-session-bus.sh but simpler and in C. I'm waiting for code
review on that; it probably won't be there in time for wheezy.

    S

[1] https://bugs.freedesktop.org/show_bug.cgi?id=39196


Reply to: