From: Sam Hartman Date: Tue, 19 Mar 2013 14:42:12 +0000 (-0400) Subject: moonshot-dbus-launch: script to launch session dbus X-Git-Tag: 0.7.1~103 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-ui.git;a=commitdiff_plain;h=64c4a0cd64c9611ed7e5751318be5e85f1de80e1 moonshot-dbus-launch: script to launch session dbus --- diff --git a/Makefile.am b/Makefile.am index 697676f..2e48271 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,7 @@ lib_LTLIBRARIES = libmoonshot/libmoonshot.la bin_PROGRAMS = \ src/moonshot \ src/moonshot-webp +pkglibexec_PROGRAMS = moonshot-dbus-launch AM_CFLAGS = -g -O0 -Wall diff --git a/moonshot-dbus-launch b/moonshot-dbus-launch new file mode 100755 index 0000000..6a44a9d --- /dev/null +++ b/moonshot-dbus-launch @@ -0,0 +1,7 @@ +#!/bin/sh +eval `dbus-launch --sh-syntax` +trap "kill $DBUS_SESSION_BUS_PID" hup pipe int term +echo $DBUS_SESSION_BUS_ADDRESS +read foo +kill $DBUS_SESSION_BUS_PID +