[jhbuild] Add an example for how to run a standalone jhbuild session from GDM
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Add an example for how to run a standalone jhbuild session from GDM
- Date: Sun, 6 Mar 2011 00:13:26 +0000 (UTC)
commit e1006d77dbe446a46e498abf03c2dd03042cdb18
Author: William Jon McCann <jmccann redhat com>
Date: Sat Mar 5 19:12:41 2011 -0500
Add an example for how to run a standalone jhbuild session from GDM
configure.ac | 1 +
examples/jhbuild-session | 18 ++++++++++++++++++
examples/jhbuild.desktop.in | 9 +++++++++
sample.jhbuildrc => examples/sample.jhbuildrc | 0
4 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a2f1bb8..d7bbf00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,5 +47,6 @@ AC_CONFIG_FILES([
buildbot/Makefile
])
AC_OUTPUT([
+ examples/jhbuild.desktop
jhbuild.desktop.in
])
diff --git a/examples/jhbuild-session b/examples/jhbuild-session
new file mode 100755
index 0000000..2ce9de8
--- /dev/null
+++ b/examples/jhbuild-session
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+GNOME=/opt/gnome
+
+PATH=${GNOME}/bin:${GNOME}/sbin:${PATH}
+LD_LIBRARY_PATH=${GNOME}/lib:${LD_LIBRARY_PATH}
+PYTHONPATH=${GNOME}/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages
+PKG_CONFIG_PATH=${GNOME}/lib/pkgconfig:${GNOME}/share/pkgconfig:/usr/lib/pkgconfig
+XDG_DATA_DIRS=${GNOME}/share:/usr/share
+XDG_CONFIG_DIRS=${GNOME}/etc/xdg
+
+unset DBUS_SESSION_BUS_ADDRESS
+
+export PATH LD_LIBRARY_PATH PYTHONPATH PKG_CONFIG_PATH GDK_USE_XFT XDG_DATA_DIRS XDG_CONFIG_DIRS
+
+#exec valgrind --tool=memcheck --log-file=/tmp/session-grind.log ${GNOME}/bin/gnome-session
+exec ${GNOME}/bin/gnome-session --debug
+
diff --git a/examples/jhbuild.desktop.in b/examples/jhbuild.desktop.in
new file mode 100644
index 0000000..1b24ba2
--- /dev/null
+++ b/examples/jhbuild.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+_Name=jhbuild
+_Comment=This session logs you into jhbuild GNOME
+Exec=jhbuild-session
+TryExec=jhbuild-session
+# no icon yet, only the top three are currently used
+Icon=
+Type=Application
diff --git a/sample.jhbuildrc b/examples/sample.jhbuildrc
similarity index 100%
rename from sample.jhbuildrc
rename to examples/sample.jhbuildrc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]