0c5e98e076
On Ubuntu Lucid, GNOME keyring is not started when the GNOME keyring library asks for the org.freedesktop.secrets service. This broke testing of syncevo-dbus-server. This commit solves the problem by explicitly starting and stopping that daemon as part of creating the D-Bus session. This is similar to what happens on Lucid when a GNOME session is started.
21 lines
597 B
Bash
Executable file
21 lines
597 B
Bash
Executable file
#! /bin/sh
|
|
#
|
|
# Wrapper script which starts a new D-Bus session before
|
|
# running a program and kills the D-Bus daemon when done.
|
|
|
|
# start D-Bus session
|
|
eval `dbus-launch`
|
|
export DBUS_SESSION_BUS_ADDRESS
|
|
trap "kill $DBUS_SESSION_BUS_PID" EXIT
|
|
|
|
# Work-around for GNOME keyring daemon not started
|
|
# when accessed via org.freedesktop.secrets: start it
|
|
# explicitly.
|
|
# See https://launchpad.net/bugs/525642 and
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=572137
|
|
/usr/bin/gnome-keyring-daemon --start --foreground --components=secrets &
|
|
KEYRING_PID=$!
|
|
trap "kill $KEYRING_PID" EXIT
|
|
|
|
# run program
|
|
"$@"
|