diff --git a/configure.ac b/configure.ac index a99f6b5c5..83ea03ff9 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,10 @@ AM_GLIB_GNU_GETTEXT AC_PATH_PROG(GCONFTOOL, gconftool-2, no) AM_GCONF_SOURCE_2 +# Get a value to substitute into gnome-shell.in +AM_PATH_PYTHON([2.5]) +AC_SUBST(PYTHON) + # We need at least this, since gst_plugin_register_static() was added # in 0.10.16, but nothing older than 0.10.21 has been tested. GSTREAMER_MIN_VERSION=0.10.16 diff --git a/src/Makefile.am b/src/Makefile.am index b85528768..9dd9ff8eb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,6 +16,7 @@ gnome-shell: gnome-shell.in -e "s|@libexecdir[@]|$(libexecdir)|" \ -e "s|@libdir[@]|$(libdir)|" \ -e "s|@pkgdatadir[@]|$(pkgdatadir)|" \ + -e "s|@PYTHON[@]|$(PYTHON)|" \ -e "s|@sysconfdir[@]|$(sysconfdir)|" \ $< > $@ && chmod a+x $@ CLEANFILES += gnome-shell diff --git a/src/gnome-shell.in b/src/gnome-shell.in index a9003a39a..035ccd3e4 100644 --- a/src/gnome-shell.in +++ b/src/gnome-shell.in @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!@PYTHON@ import atexit import optparse